Skip to contentSkip to conversation

backlight: 88pm860x_bl: remove an unnecessary line continuation

PATCH In review Jingoo Han 2 participants 2 messages Nov 19, 2012

Subsystems (2)
lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 backlight: 88pm860x_bl: remove an unnecessary line continuation

This patch removes remove an unnecessary line continuation in pm860x_backlight_probe(). Also, a checkpatch warning is fixed as below:

WARNING: Avoid unnecessary line continuations

Cc Richard Purdie <[email protected]>
Cc Joe Perches <[email protected]>
---
 drivers/video/backlight/88pm860x_bl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/backlight/88pm860x_bl.c +1 -1
index bb21412..6e1bbf8 100644
@@ -228,7 +228,7 @@ static int pm860x_backlight_probe(struct platform_device *pdev)
 	sprintf(name, "backlight-%d", pdev->id);
 	data->port = pdev->id;
 	data->chip = chip;
-	data->i2c = (chip->id == CHIP_PM8606) ? chip->client	\
+	data->i2c = (chip->id == CHIP_PM8606) ? chip->client
 			: chip->companion;
 	data->current_brightness = MAX_BRIGHTNESS;
 	if (pm860x_backlight_dt_init(pdev, data, name)) {
Signature · 1 line
1.7.2.5
#1 lore raw
Quoted 9 lines · On Mon, 19 Nov 2012 10:38:53 +0900 Jingoo Han <[email protected]> wrote:

This patch removes remove an unnecessary line continuation in pm860x_backlight_probe(). Also, a checkpatch warning is fixed as below:

WARNING: Avoid unnecessary line continuations

drivers/video/backlight/88pm860x_bl.c static int pm860x_backlight_probe(struct platform_device *pdev) · line 234

Quoted 8 lines
drivers/video/backlight/88pm860x_bl.c +1 -1
@@ -228,7 +228,7 @@ static int pm860x_backlight_probe(struct platform_device *pdev)
 	sprintf(name, "backlight-%d", pdev->id);
 	data->port = pdev->id;
 	data->chip = chip;
-	data->i2c = (chip->id == CHIP_PM8606) ? chip->client	\
+	data->i2c = (chip->id == CHIP_PM8606) ? chip->client
 			: chip->companion;
 	data->current_brightness = MAX_BRIGHTNESS;
 	if (pm860x_backlight_dt_init(pdev, data, name)) {

It's still pretty ugly, but looky here:

drivers/video/backlight/88pm860x_bl.c renamed from drivers/video/backlight/88pm860x_bl.c~backlight-88pm860x_bl-remove-an-unnecessary-line-continuation-fix +1 -2
diff -puN drivers/video/backlight/88pm860x_bl.c~backlight-88pm860x_bl-remove-an-unnecessary-line-continuation-fix drivers/video/backlight/88pm860x_bl.c
@@ -228,8 +228,7 @@ static int pm860x_backlight_probe(struct
 	sprintf(name, "backlight-%d", pdev->id);
 	data->port = pdev->id;
 	data->chip = chip;
-	data->i2c = (chip->id == CHIP_PM8606) ? chip->client
-			: chip->companion;
+	data->i2c = (chip->id == CHIP_PM8606) ? chip->client : chip->companion;
 	data->current_brightness = MAX_BRIGHTNESS;
 	if (pm860x_backlight_dt_init(pdev, data, name)) {
 		if (pdata) {

_