adp5520_bl.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) adp5520_bl.c (bb7ca747f8d6243b3943c5b133048652020f4a50)
1/*
2 * Backlight driver for Analog Devices ADP5520/ADP5501 MFD PMICs
3 *
4 * Copyright 2009 Analog Devices Inc.
5 *
6 * Licensed under the GPL-2 or later.
7 */
8

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

298 }
299
300 data->id = pdev->id;
301 data->current_brightness = 0;
302
303 mutex_init(&data->lock);
304
305 memset(&props, 0, sizeof(struct backlight_properties));
1/*
2 * Backlight driver for Analog Devices ADP5520/ADP5501 MFD PMICs
3 *
4 * Copyright 2009 Analog Devices Inc.
5 *
6 * Licensed under the GPL-2 or later.
7 */
8

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

298 }
299
300 data->id = pdev->id;
301 data->current_brightness = 0;
302
303 mutex_init(&data->lock);
304
305 memset(&props, 0, sizeof(struct backlight_properties));
306 props.type = BACKLIGHT_RAW;
306 props.max_brightness = ADP5020_MAX_BRIGHTNESS;
307 bl = backlight_device_register(pdev->name, data->master, data,
308 &adp5520_bl_ops, &props);
309 if (IS_ERR(bl)) {
310 dev_err(&pdev->dev, "failed to register backlight\n");
311 kfree(data);
312 return PTR_ERR(bl);
313 }

--- 83 unchanged lines hidden ---
307 props.max_brightness = ADP5020_MAX_BRIGHTNESS;
308 bl = backlight_device_register(pdev->name, data->master, data,
309 &adp5520_bl_ops, &props);
310 if (IS_ERR(bl)) {
311 dev_err(&pdev->dev, "failed to register backlight\n");
312 kfree(data);
313 return PTR_ERR(bl);
314 }

--- 83 unchanged lines hidden ---