Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188184
b: refs/heads/master
c: 28d8587
h: refs/heads/master
v: v3
  • Loading branch information
Bruno Prémont authored and Richard Purdie committed Mar 16, 2010
1 parent 76327bc commit 4c5322d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fa11de0a33e214a00e205494c27fb5a7bb71a5fa
refs/heads/master: 28d85873cd6d8d3176e30e02b941b1329df1024c
6 changes: 4 additions & 2 deletions trunk/drivers/platform/x86/msi-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ static int bl_set_status(struct backlight_device *bd)
return msi_wmi_set_block(0, backlight_map[bright]);
}

static struct backlight_ops msi_backlight_ops = {
static const struct backlight_ops msi_backlight_ops = {
.get_brightness = bl_get,
.update_status = bl_set_status,
};
Expand Down Expand Up @@ -255,8 +255,10 @@ static int __init msi_wmi_init(void)
backlight = backlight_device_register(DRV_NAME, NULL, NULL,
&msi_backlight_ops,
&props);
if (IS_ERR(backlight))
if (IS_ERR(backlight)) {
err = PTR_ERR(backlight);
goto err_free_input;
}

err = bl_get(NULL);
if (err < 0)
Expand Down

0 comments on commit 4c5322d

Please sign in to comment.