Home
last modified time | relevance | path

Searched refs:offset_raw (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/iio/amplifiers/
H A Dada4250.c88 u8 offset_raw, range = ADA4250_RANGE1; in ada4250_set_offset_uv() local
136 offset_raw = DIV_ROUND_CLOSEST(abs(offset_uv), vlsb); in ada4250_set_offset_uv()
145 st->offset_uv = offset_raw * vlsb; in ada4250_set_offset_uv()
153 offset_raw |= BIT(7); in ada4250_set_offset_uv()
157 ret = regmap_write(st->regmap, ADA4250_REG_SNSR_CAL_VAL, offset_raw); in ada4250_set_offset_uv()