Commit 4ce28818 authored by Deepak R Varma's avatar Deepak R Varma Committed by Greg Kroah-Hartman

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: default avatarDeepak R Varma <mh12gx2825@gmail.com>
Suggested-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Link: https://lore.kernel.org/r/469bf8db1c228913e72841367182fba2168fe795.1584904896.git.mh12gx2825@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4230c862
......@@ -824,6 +824,10 @@ static irqreturn_t ad7280_event_handler(int irq, void *private)
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,
......
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