Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199073
b: refs/heads/master
c: 3f43f8b
h: refs/heads/master
i:
  199071: 0a0898b
v: v3
  • Loading branch information
Randy Dunlap authored and Richard Purdie committed May 26, 2010
1 parent ffa5fc9 commit b37c53f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 82fd53b7f70af9855eda613450a7e4701ffdae20
refs/heads/master: 3f43f8b2ad9035c5440d65681079f4d80542d21f
7 changes: 6 additions & 1 deletion trunk/drivers/video/backlight/adp8860_bl.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <linux/fb.h>
#include <linux/backlight.h>
#include <linux/leds.h>
#include <linux/slab.h>
#include <linux/workqueue.h>

#include <linux/i2c/adp8860.h>
Expand Down Expand Up @@ -647,6 +648,7 @@ static int __devinit adp8860_probe(struct i2c_client *client,
struct adp8860_bl *data;
struct adp8860_backlight_platform_data *pdata =
client->dev.platform_data;
struct backlight_properties props;
uint8_t reg_val;
int ret;

Expand Down Expand Up @@ -683,10 +685,13 @@ static int __devinit adp8860_probe(struct i2c_client *client,
data->current_brightness = 0;
i2c_set_clientdata(client, data);

memset(&props, 0, sizeof(props));
props.max_brightness = ADP8860_MAX_BRIGHTNESS;

mutex_init(&data->lock);

bl = backlight_device_register(dev_driver_string(&client->dev),
&client->dev, data, &adp8860_bl_ops);
&client->dev, data, &adp8860_bl_ops, &props);
if (IS_ERR(bl)) {
dev_err(&client->dev, "failed to register backlight\n");
ret = PTR_ERR(bl);
Expand Down

0 comments on commit b37c53f

Please sign in to comment.