ep93xx_bl.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) | ep93xx_bl.c (bb7ca747f8d6243b3943c5b133048652020f4a50) |
---|---|
1/* 2 * Driver for the Cirrus EP93xx lcd backlight 3 * 4 * Copyright (c) 2010 H Hartley Sweeten <hsweeten@visionengravers.com> 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. --- 73 unchanged lines hidden (view full) --- 82 * is already virtual. 83 * 84 * NOTE: No locking is required; the framebuffer does not touch 85 * this register. 86 */ 87 ep93xxbl->mmio = EP93XX_RASTER_BRIGHTNESS; 88 89 memset(&props, 0, sizeof(struct backlight_properties)); | 1/* 2 * Driver for the Cirrus EP93xx lcd backlight 3 * 4 * Copyright (c) 2010 H Hartley Sweeten <hsweeten@visionengravers.com> 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. --- 73 unchanged lines hidden (view full) --- 82 * is already virtual. 83 * 84 * NOTE: No locking is required; the framebuffer does not touch 85 * this register. 86 */ 87 ep93xxbl->mmio = EP93XX_RASTER_BRIGHTNESS; 88 89 memset(&props, 0, sizeof(struct backlight_properties)); |
90 props.type = BACKLIGHT_RAW; |
|
90 props.max_brightness = EP93XX_MAX_BRIGHT; 91 bl = backlight_device_register(dev->name, &dev->dev, ep93xxbl, 92 &ep93xxbl_ops, &props); 93 if (IS_ERR(bl)) 94 return PTR_ERR(bl); 95 96 bl->props.brightness = EP93XX_DEF_BRIGHT; 97 --- 63 unchanged lines hidden --- | 91 props.max_brightness = EP93XX_MAX_BRIGHT; 92 bl = backlight_device_register(dev->name, &dev->dev, ep93xxbl, 93 &ep93xxbl_ops, &props); 94 if (IS_ERR(bl)) 95 return PTR_ERR(bl); 96 97 bl->props.brightness = EP93XX_DEF_BRIGHT; 98 --- 63 unchanged lines hidden --- |