88pm860x_bl.c (97eb3f24352ec6632c2127b35d8087d2a809a9b9) | 88pm860x_bl.c (bb7ca747f8d6243b3943c5b133048652020f4a50) |
---|---|
1/* 2 * Backlight driver for Marvell Semiconductor 88PM8606 3 * 4 * Copyright (C) 2009 Marvell International Ltd. 5 * Haojian Zhuang <haojian.zhuang@marvell.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 213 unchanged lines hidden (view full) --- 222 data->port = __check_device(pdata, name); 223 if (data->port < 0) { 224 dev_err(&pdev->dev, "wrong platform data is assigned"); 225 kfree(data); 226 return -EINVAL; 227 } 228 229 memset(&props, 0, sizeof(struct backlight_properties)); | 1/* 2 * Backlight driver for Marvell Semiconductor 88PM8606 3 * 4 * Copyright (C) 2009 Marvell International Ltd. 5 * Haojian Zhuang <haojian.zhuang@marvell.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 213 unchanged lines hidden (view full) --- 222 data->port = __check_device(pdata, name); 223 if (data->port < 0) { 224 dev_err(&pdev->dev, "wrong platform data is assigned"); 225 kfree(data); 226 return -EINVAL; 227 } 228 229 memset(&props, 0, sizeof(struct backlight_properties)); |
230 props.type = BACKLIGHT_RAW; |
|
230 props.max_brightness = MAX_BRIGHTNESS; 231 bl = backlight_device_register(name, &pdev->dev, data, 232 &pm860x_backlight_ops, &props); 233 if (IS_ERR(bl)) { 234 dev_err(&pdev->dev, "failed to register backlight\n"); 235 kfree(data); 236 return PTR_ERR(bl); 237 } --- 72 unchanged lines hidden --- | 231 props.max_brightness = MAX_BRIGHTNESS; 232 bl = backlight_device_register(name, &pdev->dev, data, 233 &pm860x_backlight_ops, &props); 234 if (IS_ERR(bl)) { 235 dev_err(&pdev->dev, "failed to register backlight\n"); 236 kfree(data); 237 return PTR_ERR(bl); 238 } --- 72 unchanged lines hidden --- |