staging: iio: adc: ad7280a: Add comments to clarify stringified arguments
authorDeepak R Varma <mh12gx2825@gmail.com>
Sun, 22 Mar 2020 19:57:26 +0000 (01:27 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Mar 2020 10:45:20 +0000 (11:45 +0100)
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>
drivers/staging/iio/adc/ad7280a.c

index 19a5f24..bef6bd1 100644 (file)
@@ -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,