Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188185
b: refs/heads/master
c: ec57af9
h: refs/heads/master
i:
  188183: 76327bc
v: v3
  • Loading branch information
Bruno Prémont authored and Richard Purdie committed Mar 16, 2010
1 parent 4c5322d commit 7a4d476
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: 28d85873cd6d8d3176e30e02b941b1329df1024c
refs/heads/master: ec57af9c2ece22ae6234189972105d777ff5f939
6 changes: 4 additions & 2 deletions trunk/drivers/platform/x86/panasonic-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ static int bl_set_status(struct backlight_device *bd)
return acpi_pcc_write_sset(pcc, SINF_DC_CUR_BRIGHT, bright);
}

static struct backlight_ops pcc_backlight_ops = {
static const struct backlight_ops pcc_backlight_ops = {
.get_brightness = bl_get,
.update_status = bl_set_status,
};
Expand Down Expand Up @@ -651,8 +651,10 @@ static int acpi_pcc_hotkey_add(struct acpi_device *device)
props.max_brightness = pcc->sinf[SINF_AC_MAX_BRIGHT];
pcc->backlight = backlight_device_register("panasonic", NULL, pcc,
&pcc_backlight_ops, &props);
if (IS_ERR(pcc->backlight))
if (IS_ERR(pcc->backlight)) {
result = PTR_ERR(pcc->backlight);
goto out_sinf;
}

/* read the initial brightness setting from the hardware */
pcc->backlight->props.brightness = pcc->sinf[SINF_AC_CUR_BRIGHT];
Expand Down

0 comments on commit 7a4d476

Please sign in to comment.