Skip to content

Commit

Permalink
Merge tag 'backlight-for-linus-4.9' of git://git.kernel.org/pub/scm/l…
Browse files Browse the repository at this point in the history
…inux/kernel/git/lee/backlight

Pull backlight updates from Lee Jones:
 "Fix-ups:

   - Remove unused .owner assignment; tosa_bl
   - Enable GPIO sleeping; pwm_bl"

* tag 'backlight-for-linus-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight:
  backlight: pwm_bl: Handle gpio that can sleep
  backlight-tosa: Delete unnecessary assignment for the field "owner"
  • Loading branch information
Linus Torvalds committed Oct 7, 2016
2 parents 9a687ae + 0c9501f commit 3477d16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/video/backlight/pwm_bl.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static void pwm_backlight_power_on(struct pwm_bl_data *pb, int brightness)
dev_err(pb->dev, "failed to enable power supply\n");

if (pb->enable_gpio)
gpiod_set_value(pb->enable_gpio, 1);
gpiod_set_value_cansleep(pb->enable_gpio, 1);

pwm_enable(pb->pwm);
pb->enabled = true;
Expand All @@ -70,7 +70,7 @@ static void pwm_backlight_power_off(struct pwm_bl_data *pb)
pwm_disable(pb->pwm);

if (pb->enable_gpio)
gpiod_set_value(pb->enable_gpio, 0);
gpiod_set_value_cansleep(pb->enable_gpio, 0);

regulator_disable(pb->power_supply);
pb->enabled = false;
Expand Down
1 change: 0 additions & 1 deletion drivers/video/backlight/tosa_bl.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ MODULE_DEVICE_TABLE(i2c, tosa_bl_id);
static struct i2c_driver tosa_bl_driver = {
.driver = {
.name = "tosa-bl",
.owner = THIS_MODULE,
.pm = &tosa_bl_pm_ops,
},
.probe = tosa_bl_probe,
Expand Down

0 comments on commit 3477d16

Please sign in to comment.