backlight: Add GPIO-based backlight driver
The GPIO backlight driver controls the backlight in on/off mode through a single GPIO. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
This commit is contained in:

committed by
Simon Horman

parent
ad81f0545e
commit
8b770e3c98
21
include/linux/platform_data/gpio_backlight.h
Normal file
21
include/linux/platform_data/gpio_backlight.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* gpio_backlight.h - Simple GPIO-controlled backlight
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*/
|
||||
#ifndef __GPIO_BACKLIGHT_H__
|
||||
#define __GPIO_BACKLIGHT_H__
|
||||
|
||||
struct device;
|
||||
|
||||
struct gpio_backlight_platform_data {
|
||||
struct device *fbdev;
|
||||
int gpio;
|
||||
int def_value;
|
||||
bool active_low;
|
||||
const char *name;
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user