Skip to contentSkip to conversation

Drivers:iio:adc : fix quoted string split across lines issue in at91_adc.c

PATCH In review [email protected] 2 participants 2 messages Dec 17, 2017 – Dec 29, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index a4767d6..c3729f8 100644
@@ -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

maintainer
#1 lore raw
Quoted 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.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 +0 -0
index a4767d6..c3729f8 100644

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 -1
 	return 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