backlight: enable backlight in 88pm860x
PATCH 7/10 backlight: enable backlight in 88pm860x
PATCH 7/10 backlight: enable backlight in 88pm860x
Review
Quoted 12 lines · Haojian Zhuang
(quoted diff) +12
-0+ +static int pm860x_backlight_set(struct backlight_device *bl, int brightness) +{ + struct pm860x_backlight_data *data = bl_get_data(bl); + struct pm860x_chip *chip = data->chip; + unsigned char value; + int ret; + + if ((wled_a(data->port) < 0) || (wled_b(data->port) < 0) + || (wled_idc(data->port) < 0)) + return -EINVAL; +
Do you even need to register blacklight device if data->port is negative?
Signature · 1 line
Dmitry
PATCH 7/10 backlight: enable backlight in 88pm860x
Quoted 16 lines · Dmitry Torokhov
Review
Quoted 12 lines · Haojian Zhuang
(quoted diff) +12
-0+ +static int pm860x_backlight_set(struct backlight_device *bl, int brightness) +{ + ? ? struct pm860x_backlight_data *data = bl_get_data(bl); + ? ? struct pm860x_chip *chip = data->chip; + ? ? unsigned char value; + ? ? int ret; + + ? ? if ((wled_a(data->port) < 0) || (wled_b(data->port) < 0) + ? ? ? ? ? ? || (wled_idc(data->port) < 0)) + ? ? ? ? ? ? return -EINVAL; +Do you even need to register blacklight device if
data->portis negative?
Quoted 3 lines
--
Dmitry
Right. Code is updated.
Haojian
PATCH 7/10 backlight: enable backlight in 88pm860x
updated with module supported
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-backlight-enable-backlight-in-88pm860x.patch
Type: text/x-patch
Size: 9638 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20091119/d4b6376b/attachment-0001.bin>