da903x_bl.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) da903x_bl.c (bb7ca747f8d6243b3943c5b133048652020f4a50)
1/*
2 * Backlight driver for Dialog Semiconductor DA9030/DA9034
3 *
4 * Copyright (C) 2008 Compulab, Ltd.
5 * Mike Rapoport <mike@compulab.co.il>
6 *
7 * Copyright (C) 2006-2008 Marvell International Ltd.
8 * Eric Miao <eric.miao@marvell.com>

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

131 data->da903x_dev = pdev->dev.parent;
132 data->current_brightness = 0;
133
134 /* adjust the WLED output current */
135 if (pdata)
136 da903x_write(data->da903x_dev, DA9034_WLED_CONTROL2,
137 DA9034_WLED_ISET(pdata->output_current));
138
1/*
2 * Backlight driver for Dialog Semiconductor DA9030/DA9034
3 *
4 * Copyright (C) 2008 Compulab, Ltd.
5 * Mike Rapoport <mike@compulab.co.il>
6 *
7 * Copyright (C) 2006-2008 Marvell International Ltd.
8 * Eric Miao <eric.miao@marvell.com>

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

131 data->da903x_dev = pdev->dev.parent;
132 data->current_brightness = 0;
133
134 /* adjust the WLED output current */
135 if (pdata)
136 da903x_write(data->da903x_dev, DA9034_WLED_CONTROL2,
137 DA9034_WLED_ISET(pdata->output_current));
138
139 props.type = BACKLIGHT_RAW;
139 props.max_brightness = max_brightness;
140 bl = backlight_device_register(pdev->name, data->da903x_dev, data,
141 &da903x_backlight_ops, &props);
142 if (IS_ERR(bl)) {
143 dev_err(&pdev->dev, "failed to register backlight\n");
144 kfree(data);
145 return PTR_ERR(bl);
146 }

--- 70 unchanged lines hidden ---
140 props.max_brightness = max_brightness;
141 bl = backlight_device_register(pdev->name, data->da903x_dev, data,
142 &da903x_backlight_ops, &props);
143 if (IS_ERR(bl)) {
144 dev_err(&pdev->dev, "failed to register backlight\n");
145 kfree(data);
146 return PTR_ERR(bl);
147 }

--- 70 unchanged lines hidden ---