git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'common/fbdev' of master.kernel.org:/pub/scm/linux/kernel/git/lethal...
[sfrench/cifs-2.6.git]
/
arch
/
sh
/
boards
/
mach-ecovec24
/
setup.c
diff --git
a/arch/sh/boards/mach-ecovec24/setup.c
b/arch/sh/boards/mach-ecovec24/setup.c
index e44480ce2ea8c32555c84e4f7caf3e033f65a850..c68e2863bf860d16996c27f023431656b21c9836 100644
(file)
--- a/
arch/sh/boards/mach-ecovec24/setup.c
+++ b/
arch/sh/boards/mach-ecovec24/setup.c
@@
-263,6
+263,18
@@
const static struct fb_videomode ecovec_dvi_modes[] = {
},
};
},
};
+static int ecovec24_set_brightness(void *board_data, int brightness)
+{
+ gpio_set_value(GPIO_PTR1, brightness);
+
+ return 0;
+}
+
+static int ecovec24_get_brightness(void *board_data)
+{
+ return gpio_get_value(GPIO_PTR1);
+}
+
static struct sh_mobile_lcdc_info lcdc_info = {
.ch[0] = {
.interface_type = RGB18,
static struct sh_mobile_lcdc_info lcdc_info = {
.ch[0] = {
.interface_type = RGB18,
@@
-273,6
+285,12
@@
static struct sh_mobile_lcdc_info lcdc_info = {
.height = 91,
},
.board_cfg = {
.height = 91,
},
.board_cfg = {
+ .set_brightness = ecovec24_set_brightness,
+ .get_brightness = ecovec24_get_brightness,
+ },
+ .bl_info = {
+ .name = "sh_mobile_lcdc_bl",
+ .max_brightness = 1,
},
}
};
},
}
};