wm831x_bl.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) | wm831x_bl.c (bb7ca747f8d6243b3943c5b133048652020f4a50) |
---|---|
1/* 2 * Backlight driver for Wolfson Microelectronics WM831x PMICs 3 * 4 * Copyright 2009 Wolfson Microelectonics plc 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. --- 179 unchanged lines hidden (view full) --- 188 data = kzalloc(sizeof(*data), GFP_KERNEL); 189 if (data == NULL) 190 return -ENOMEM; 191 192 data->wm831x = wm831x; 193 data->current_brightness = 0; 194 data->isink_reg = isink_reg; 195 | 1/* 2 * Backlight driver for Wolfson Microelectronics WM831x PMICs 3 * 4 * Copyright 2009 Wolfson Microelectonics plc 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. --- 179 unchanged lines hidden (view full) --- 188 data = kzalloc(sizeof(*data), GFP_KERNEL); 189 if (data == NULL) 190 return -ENOMEM; 191 192 data->wm831x = wm831x; 193 data->current_brightness = 0; 194 data->isink_reg = isink_reg; 195 |
196 props.type = BACKLIGHT_RAW; |
|
196 props.max_brightness = max_isel; 197 bl = backlight_device_register("wm831x", &pdev->dev, data, 198 &wm831x_backlight_ops, &props); 199 if (IS_ERR(bl)) { 200 dev_err(&pdev->dev, "failed to register backlight\n"); 201 kfree(data); 202 return PTR_ERR(bl); 203 } --- 49 unchanged lines hidden --- | 197 props.max_brightness = max_isel; 198 bl = backlight_device_register("wm831x", &pdev->dev, data, 199 &wm831x_backlight_ops, &props); 200 if (IS_ERR(bl)) { 201 dev_err(&pdev->dev, "failed to register backlight\n"); 202 kfree(data); 203 return PTR_ERR(bl); 204 } --- 49 unchanged lines hidden --- |