aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio
diff options
context:
space:
mode:
authorDeepak R Varma <mh12gx2825@gmail.com>2020-03-23 01:27:26 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-23 11:45:20 +0100
commit4ce28818941fa0058c345310c9768b09d6ae06d8 (patch)
tree78d464a1f5319cfb4fb30c514a6168b2348734e7 /drivers/staging/iio
parentstaging: iio: adc: ad7192: Re-indent enum labels (diff)
downloadlinux-dev-4ce28818941fa0058c345310c9768b09d6ae06d8.tar.xz
linux-dev-4ce28818941fa0058c345310c9768b09d6ae06d8.zip
staging: iio: adc: ad7280a: Add comments to clarify stringified arguments
Checkpatch would flash a check message around a stringified macro argument containing a '-' character. Add comment to indicate the argument is legitimate and doesn't need fixing. Signed-off-by: Deepak R Varma <mh12gx2825@gmail.com> Suggested-by: Lars-Peter Clausen <lars@metafoo.de> Link: https://lore.kernel.org/r/469bf8db1c228913e72841367182fba2168fe795.1584904896.git.mh12gx2825@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/iio')
-rw-r--r--drivers/staging/iio/adc/ad7280a.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/iio/adc/ad7280a.c b/drivers/staging/iio/adc/ad7280a.c
index 19a5f244dcae..bef6bd1295ea 100644
--- a/drivers/staging/iio/adc/ad7280a.c
+++ b/drivers/staging/iio/adc/ad7280a.c
@@ -824,6 +824,10 @@ out:
return IRQ_HANDLED;
}
+/* Note: No need to fix checkpatch warning that reads:
+ * CHECK: spaces preferred around that '-' (ctx:VxV)
+ * The function argument is stringified and doesn't need a fix
+ */
static IIO_DEVICE_ATTR_NAMED(in_thresh_low_value,
in_voltage-voltage_thresh_low_value,
0644,