Commit 8aa6e668 authored by Antoniu Miclaus's avatar Antoniu Miclaus Committed by Jonathan Cameron

iio: addac: ad74413r: fix function prefix typo

Use complete device name prefix in the input current offset getter
function.
Signed-off-by: default avatarAntoniu Miclaus <antoniu.miclaus@analog.com>
Reviewed-by: default avatarNuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20230830094314.26353-1-antoniu.miclaus@analog.comSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 3a23b384
...@@ -705,7 +705,7 @@ static int ad74413r_get_input_current_scale(struct ad74413r_state *st, ...@@ -705,7 +705,7 @@ static int ad74413r_get_input_current_scale(struct ad74413r_state *st,
return IIO_VAL_FRACTIONAL; return IIO_VAL_FRACTIONAL;
} }
static int ad74413_get_input_current_offset(struct ad74413r_state *st, static int ad74413r_get_input_current_offset(struct ad74413r_state *st,
unsigned int channel, int *val) unsigned int channel, int *val)
{ {
unsigned int range; unsigned int range;
...@@ -991,7 +991,7 @@ static int ad74413r_read_raw(struct iio_dev *indio_dev, ...@@ -991,7 +991,7 @@ static int ad74413r_read_raw(struct iio_dev *indio_dev,
return ad74413r_get_input_voltage_offset(st, return ad74413r_get_input_voltage_offset(st,
chan->channel, val); chan->channel, val);
case IIO_CURRENT: case IIO_CURRENT:
return ad74413_get_input_current_offset(st, return ad74413r_get_input_current_offset(st,
chan->channel, val); chan->channel, val);
default: default:
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment