Skip to content

Commit 4ce2881

Browse files
mh12gx2825gregkh
authored andcommitted
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>
1 parent 4230c86 commit 4ce2881

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎drivers/staging/iio/adc/ad7280a.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,10 @@ static irqreturn_t ad7280_event_handler(int irq, void *private)
824824
return IRQ_HANDLED;
825825
}
826826

827+
/* Note: No need to fix checkpatch warning that reads:
828+
* CHECK: spaces preferred around that '-' (ctx:VxV)
829+
* The function argument is stringified and doesn't need a fix
830+
*/
827831
static IIO_DEVICE_ATTR_NAMED(in_thresh_low_value,
828832
in_voltage-voltage_thresh_low_value,
829833
0644,

0 commit comments

Comments
 (0)