kb3886_bl.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) | kb3886_bl.c (bb7ca747f8d6243b3943c5b133048652020f4a50) |
---|---|
1/* 2 * Backlight Driver for the KB3886 Backlight 3 * 4 * Copyright (c) 2007-2008 Claudio Nieder 5 * 6 * Based on corgi_bl.c by Richard Purdie and kb3886 driver by Robert Woerle 7 * 8 * This program is free software; you can redistribute it and/or modify --- 135 unchanged lines hidden (view full) --- 144 struct backlight_properties props; 145 struct kb3886bl_machinfo *machinfo = pdev->dev.platform_data; 146 147 bl_machinfo = machinfo; 148 if (!machinfo->limit_mask) 149 machinfo->limit_mask = -1; 150 151 memset(&props, 0, sizeof(struct backlight_properties)); | 1/* 2 * Backlight Driver for the KB3886 Backlight 3 * 4 * Copyright (c) 2007-2008 Claudio Nieder 5 * 6 * Based on corgi_bl.c by Richard Purdie and kb3886 driver by Robert Woerle 7 * 8 * This program is free software; you can redistribute it and/or modify --- 135 unchanged lines hidden (view full) --- 144 struct backlight_properties props; 145 struct kb3886bl_machinfo *machinfo = pdev->dev.platform_data; 146 147 bl_machinfo = machinfo; 148 if (!machinfo->limit_mask) 149 machinfo->limit_mask = -1; 150 151 memset(&props, 0, sizeof(struct backlight_properties)); |
152 props.type = BACKLIGHT_RAW; |
|
152 props.max_brightness = machinfo->max_intensity; 153 kb3886_backlight_device = backlight_device_register("kb3886-bl", 154 &pdev->dev, NULL, 155 &kb3886bl_ops, 156 &props); 157 if (IS_ERR(kb3886_backlight_device)) 158 return PTR_ERR(kb3886_backlight_device); 159 --- 49 unchanged lines hidden --- | 153 props.max_brightness = machinfo->max_intensity; 154 kb3886_backlight_device = backlight_device_register("kb3886-bl", 155 &pdev->dev, NULL, 156 &kb3886bl_ops, 157 &props); 158 if (IS_ERR(kb3886_backlight_device)) 159 return PTR_ERR(kb3886_backlight_device); 160 --- 49 unchanged lines hidden --- |