adp8860_bl.c (97eb3f24352ec6632c2127b35d8087d2a809a9b9) adp8860_bl.c (bb7ca747f8d6243b3943c5b133048652020f4a50)
1/*
2 * Backlight driver for Analog Devices ADP8860 Backlight Devices
3 *
4 * Copyright 2009-2010 Analog Devices Inc.
5 *
6 * Licensed under the GPL-2 or later.
7 */
8

--- 695 unchanged lines hidden (view full) ---

704 data->revid = ADP8860_DEVID(reg_val);
705 data->client = client;
706 data->pdata = pdata;
707 data->id = id->driver_data;
708 data->current_brightness = 0;
709 i2c_set_clientdata(client, data);
710
711 memset(&props, 0, sizeof(props));
1/*
2 * Backlight driver for Analog Devices ADP8860 Backlight Devices
3 *
4 * Copyright 2009-2010 Analog Devices Inc.
5 *
6 * Licensed under the GPL-2 or later.
7 */
8

--- 695 unchanged lines hidden (view full) ---

704 data->revid = ADP8860_DEVID(reg_val);
705 data->client = client;
706 data->pdata = pdata;
707 data->id = id->driver_data;
708 data->current_brightness = 0;
709 i2c_set_clientdata(client, data);
710
711 memset(&props, 0, sizeof(props));
712 props.type = BACKLIGHT_RAW;
712 props.max_brightness = ADP8860_MAX_BRIGHTNESS;
713
714 mutex_init(&data->lock);
715
716 bl = backlight_device_register(dev_driver_string(&client->dev),
717 &client->dev, data, &adp8860_bl_ops, &props);
718 if (IS_ERR(bl)) {
719 dev_err(&client->dev, "failed to register backlight\n");

--- 119 unchanged lines hidden ---
713 props.max_brightness = ADP8860_MAX_BRIGHTNESS;
714
715 mutex_init(&data->lock);
716
717 bl = backlight_device_register(dev_driver_string(&client->dev),
718 &client->dev, data, &adp8860_bl_ops, &props);
719 if (IS_ERR(bl)) {
720 dev_err(&client->dev, "failed to register backlight\n");

--- 119 unchanged lines hidden ---