Skip to contentSkip to conversation

iio:cros_ec_sensors: Fix a wrong function name in kernel doc.

PATCH In review Jonathan Cameron 2 participants 3 messages Mar 13, 2021 – Mar 20, 2021

Subsystems (2)
lore
Share & tools
lore

Jonathan Cameron

author maintainer
#0 lore raw

PATCH 1/1 iio:cros_ec_sensors: Fix a wrong function name in kernel doc.

From: Jonathan Cameron <[email protected]>

cros_ec_sensors_read_data_unsafe() had wrong function name in kernel-doc This shows up with W=1 builds.

No fixes tag because I don't want to waste time on this being backported.

Cc Guenter Roeck <[email protected]>
Cc Douglas Anderson <[email protected]>
Cc Gwendal Grignou <[email protected]>
Cc Enric Balletbo i Serra <[email protected]>
---
 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c +1 -1
index f8824afe595e..ed9dd0ad5c03 100644
@@ -559,7 +559,7 @@ static int cros_ec_sensors_read_until_not_busy(
 }
 
 /**
- * read_ec_sensors_data_unsafe() - read acceleration data from EC shared memory
+ * cros_ec_sensors_read_data_unsafe() - read acc data from EC shared memory
  * @indio_dev:	pointer to IIO device
  * @scan_mask:	bitmap of the sensor indices to scan
  * @data:	location to store data
Signature · 1 line
2.30.1
Acked-by on v1 1/1
#1 lore raw

Hi Jonathan,

Thank you for fix this.

Quoted 22 lines · Jonathan Cameron

From: Jonathan Cameron <[email protected]>

cros_ec_sensors_read_data_unsafe() had wrong function name in kernel-doc This shows up with W=1 builds.

No fixes tag because I don't want to waste time on this being backported.

Cc Guenter Roeck <[email protected]>
Cc Douglas Anderson <[email protected]>
Cc Gwendal Grignou <[email protected]>
Cc Enric Balletbo i Serra <[email protected]>
---
 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c +0 -0
index f8824afe595e..ed9dd0ad5c03 100644

drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c static int cros_ec_sensors_read_until_not_busy( · line 562

Quoted 5 lines
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c +1 -1
@@ -559,7 +559,7 @@ static int cros_ec_sensors_read_until_not_busy(
 }
 
 /**
- * read_ec_sensors_data_unsafe() - read acceleration data from EC shared memory
+ * cros_ec_sensors_read_data_unsafe() - read acc data from EC shared memory

nit: Wouldn't be better to maintain the word 'acceleration' instead of replacing for 'acc'. It is less than 100 characters in total so should be fine.

In any case:

Quoted 4 lines
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c +0 -0
  * @indio_dev:	pointer to IIO device
  * @scan_mask:	bitmap of the sensor indices to scan
  * @data:	location to store data
author maintainer Applied
#2 lore raw
Quoted 29 lines · On Mon, 15 Mar 2021 11:35:44 +0100 Enric Balletbo i Serra…

Hi Jonathan,

Thank you for fix this.

Quoted 24 lines · Jonathan Cameron

From: Jonathan Cameron <[email protected]>

cros_ec_sensors_read_data_unsafe() had wrong function name in kernel-doc This shows up with W=1 builds.

No fixes tag because I don't want to waste time on this being backported.

Cc Guenter Roeck <[email protected]>
Cc Douglas Anderson <[email protected]>
Cc Gwendal Grignou <[email protected]>
Cc Enric Balletbo i Serra <[email protected]>
---
 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c +0 -0
index f8824afe595e..ed9dd0ad5c03 100644
@@ -559,7 +559,7 @@ static int cros_ec_sensors_read_until_not_busy(
 }
 
Quoted 7 lines

drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c static int cros_ec_sensors_read_until_not_busy( · line 562

Quoted 3 lines
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c +1 -1
 /**
- * read_ec_sensors_data_unsafe() - read acceleration data from EC shared memory
+ * cros_ec_sensors_read_data_unsafe() - read acc data from EC shared memory  

nit: Wouldn't be better to maintain the word 'acceleration' instead of replacing for 'acc'. It is less than 100 characters in total so should be fine.

I've put it back whilst applying.

Quoted 4 lines

In any case:

Applied. Thanks,

Jonathan

Quoted 5 lines
Quoted 5 lines
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c +0 -0
  * @indio_dev:	pointer to IIO device
  * @scan_mask:	bitmap of the sensor indices to scan
  * @data:	location to store data