Skip to contentSkip to conversation

iio: addac: ad74413r: fix function prefix typo

PATCH Applied Antoniu Miclaus 3 participants 3 messages Aug 30, 2023 – Sep 3, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: addac: ad74413r: fix function prefix typo

Use complete device name prefix in the input current offset getter function.

Fixes fea251b6a5db ("iio: addac: add AD74413R driver")
---
 drivers/iio/addac/ad74413r.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/iio/addac/ad74413r.c +3 -3
index 6b0e8218f150..75216ece7ad6 100644
@@ -705,8 +705,8 @@ static int ad74413r_get_input_current_scale(struct ad74413r_state *st,
 	return IIO_VAL_FRACTIONAL;
 }
 
-static int ad74413_get_input_current_offset(struct ad74413r_state *st,
-					    unsigned int channel, int *val)
+static int ad74413r_get_input_current_offset(struct ad74413r_state *st,
+					     unsigned int channel, int *val)
 {
 	unsigned int range;
 	int voltage_range;
@@ -991,7 +991,7 @@ static int ad74413r_read_raw(struct iio_dev *indio_dev,
 			return ad74413r_get_input_voltage_offset(st,
 				chan->channel, val);
 		case IIO_CURRENT:
-			return ad74413_get_input_current_offset(st,
+			return ad74413r_get_input_current_offset(st,
 				chan->channel, val);
 		default:
 			return -EINVAL;
Signature · 1 line
2.42.0
Reviewed-by Nuno Sa on v1 1/1
#1 lore raw
Quoted 6 lines · Antoniu Miclaus

Use complete device name prefix in the input current offset getter function.

Fixes fea251b6a5db ("iio: addac: add AD74413R driver")

---

This a typo fix. So, I'm not so sure if a Fixes tag, backporting is really needed... Anyways,

Quoted 1 line
maintainer Applied
#2 lore raw
Quoted 9 lines · On Thu, 31 Aug 2023 09:48:19 +0200 Nuno Sá <[email protected]> wrote:
Quoted 6 lines · Antoniu Miclaus

Use complete device name prefix in the input current offset getter function.

Fixes fea251b6a5db ("iio: addac: add AD74413R driver")

---

This a typo fix. So, I'm not so sure if a Fixes tag, backporting is really needed...

Agreed - I dropped the fixes tag whilst applying.

Quoted 4 lines

Anyways,

Applied to the togreg branch of iio.git which for now is only pushed out as testing because I want to rebase on rc1 once available.

Thanks,

Jonathan

Quoted 1 line
Quoted 1 line