Drivers:iio:adc : fix quoted string split across lines issue in at91_adc.c
Subsystems (2)
PATCH 2/2 Drivers:iio:adc : fix quoted string split across lines issue in at91_adc.c
From: Venkat Prashanth B U <[email protected]>
This is a patch to the at91_adc.c file that fixes up a quoted string split across lines warning found by the checkpatch.pl tool
--- drivers/iio/adc/at91_adc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/iio/adc/at91_adc.c +2 -2
@@ -737,8 +737,8 @@ static int at91_adc_of_get_resolution(struct at91_adc_state *st, count =of_property_count_strings (np,"atmel,adc-res-names" );if (count <2 ) { -dev_err (&idev->dev,"You must specified at least two resolution names for " -"adc-res-names property in the DT\n" ); +dev_err(&idev->dev, "You must specified at least two resolution names for + adc-res-names property in the DT\n"); return count; }
--
1.9.1
Jonathan Cameron
maintainerQuoted 15 lines · On Sun, 17 Dec 2017 19:38:21 +0530 [email protected] wrote:
From: Venkat Prashanth B U <[email protected]>
This is a patch to the
at91_adc.cfile that fixes up a quoted string split across lines warning found by the checkpatch.pl toolSigned-off-by Venkat Prashanth B U <[email protected]>--- drivers/iio/adc/at91_adc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/iio/adc/at91_adc.c +0
-0
drivers/iio/adc/at91_adc.c static int at91_adc_of_get_resolution(struct at91_adc_state *st, · line 741
Quoted 7 lines
drivers/iio/adc/at91_adc.c +2
-2@@ -737,8 +737,8 @@ static int at91_adc_of_get_resolution(struct at91_adc_state *st, count =of_property_count_strings (np,"atmel,adc-res-names" ); if (count < 2) { -dev_err (&idev->dev,"You must specified at least two resolution names for " -"adc-res-names property in the DT\n" ); +dev_err(&idev->dev, "You must specified at least two resolution names for + adc-res-names property in the DT\n");
This still seems to be on two lines.
The check patch is complaining because such a broken string is difficult to grep for. It's still difficult like this.
Key thing here is that the ability to grep for the string is more important than the 80 character limit.
Jonathan
Quoted 10 lines
drivers/iio/adc/at91_adc.c +0
-1return count; } --1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html