Skip to contentSkip to conversation

+ backlight-lp8788-remove-unnecessary-parentheses.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Jan 7, 2014

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

Subject: + backlight-lp8788-remove-unnecessary-parentheses.patch added to -mm tree
To: [email protected]
From: [email protected]
Date: Tue, 07 Jan 2014 14:11:39 -0800

The patch titled
Subject: backlight: lp8788: remove unnecessary parentheses
has been added to the -mm tree. Its filename is
backlight-lp8788-remove-unnecessary-parentheses.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/backlight-lp8788-remove-unnecessary-parentheses.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/backlight-lp8788-remove-unnecessary-parentheses.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Jingoo Han <[email protected]>
Subject: backlight: lp8788: remove unnecessary parentheses

Remove unnecessary parentheses in order to fix the following checkpatch error.

ERROR: return is not a function, parentheses are not required

---

 drivers/video/backlight/lp8788_bl.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/video/backlight/lp8788_bl.c renamed from drivers/video/backlight/lp8788_bl.c~backlight-lp8788-remove-unnecessary-parentheses +3 -3
diff -puN drivers/video/backlight/lp8788_bl.c~backlight-lp8788-remove-unnecessary-parentheses drivers/video/backlight/lp8788_bl.c
@@ -63,13 +63,13 @@ static struct lp8788_bl_config default_b
 
 static inline bool is_brightness_ctrl_by_pwm(enum lp8788_bl_ctrl_mode mode)
 {
-	return (mode == LP8788_BL_COMB_PWM_BASED);
+	return mode == LP8788_BL_COMB_PWM_BASED;
 }
 
 static inline bool is_brightness_ctrl_by_register(enum lp8788_bl_ctrl_mode mode)
 {
-	return (mode == LP8788_BL_REGISTER_ONLY ||
-		mode == LP8788_BL_COMB_REGISTER_BASED);
+	return mode == LP8788_BL_REGISTER_ONLY ||
+		mode == LP8788_BL_COMB_REGISTER_BASED;
 }
 
 static int lp8788_backlight_configure(struct lp8788_bl *bl)

_

Patches currently in -mm which might be from [email protected] are

drivers-block-sx8c-use-module_pci_driver.patch drivers-block-sx8c-remove-unnecessary-pci_set_drvdata.patch backlight-jornada720-use-devm_backlight_device_register.patch backlight-hp680_bl-use-devm_backlight_device_register.patch backlight-omap1-use-devm_backlight_device_register.patch backlight-ot200_bl-use-devm_backlight_device_register.patch backlight-tosa-use-devm_backlight_device_register.patch backlight-jornada720-use-devm_lcd_device_register.patch backlight-l4f00242t03-use-devm_lcd_device_register.patch backlight-tosa-use-devm_lcd_device_register.patch drivers-video-backlight-backlightc-remove-backlight-sysfs-uevent.patch backlight-kb3886_bl-fix-incorrect-placement-of-__initdata-marker.patch backlight-lp855x-remove-unnecessary-parentheses.patch backlight-lp8788-remove-unnecessary-parentheses.patch drivers-rtc-rtc-as3722-use-devm-for-rtc-and-irq-registration.patch rtc-ds1305-remove-unnecessary-spi_set_drvdata.patch rtc-rtc-twl-use-devm_-functions.patch rtc-rtc-vr41xx-use-devm_-functions.patch
linux-next.patch backlight-lcd-call-put_device-if-device_register-fails.patch