backlight: 88pm860x_bl: remove an unnecessary line continuation
Subsystems (2)
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
Signed-off-by Jingoo Han <[email protected]>
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
@@ -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
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
@@ -228,8 +228,7 @@ static int pm860x_backlight_probe(structsprintf (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) {
_