mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
SM501: reverse FPEN/VBIASEN flags behaviour
To keep backwards compatibility, reverse the meanings of these flags so that when they are not set, the driver uses the original behvaiour. Signed-off-by: Ben Dooks <[email protected]> Cc: Arnaud Patard <[email protected]> Acked-by: Krzysztof Helt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
cd94b9dbfa
commit
cdc83ae245
2 changed files with 6 additions and 6 deletions
|
|
@ -663,14 +663,14 @@ static void sm501fb_panel_power(struct sm501fb_info *fbi, int to)
|
|||
sm501fb_sync_regs(fbi);
|
||||
mdelay(10);
|
||||
|
||||
if (pd->flags & SM501FB_FLAG_PANEL_USE_VBIASEN) {
|
||||
if (!(pd->flags & SM501FB_FLAG_PANEL_NO_VBIASEN)) {
|
||||
control |= SM501_DC_PANEL_CONTROL_BIAS; /* VBIASEN */
|
||||
writel(control, ctrl_reg);
|
||||
sm501fb_sync_regs(fbi);
|
||||
mdelay(10);
|
||||
}
|
||||
|
||||
if (pd->flags & SM501FB_FLAG_PANEL_USE_FPEN) {
|
||||
if (!(pd->flags & SM501FB_FLAG_PANEL_NO_FPEN)) {
|
||||
control |= SM501_DC_PANEL_CONTROL_FPEN;
|
||||
writel(control, ctrl_reg);
|
||||
sm501fb_sync_regs(fbi);
|
||||
|
|
@ -678,14 +678,14 @@ static void sm501fb_panel_power(struct sm501fb_info *fbi, int to)
|
|||
}
|
||||
} else if (!to && (control & SM501_DC_PANEL_CONTROL_VDD) != 0) {
|
||||
/* disable panel power */
|
||||
if (pd->flags & SM501FB_FLAG_PANEL_USE_FPEN) {
|
||||
if (!(pd->flags & SM501FB_FLAG_PANEL_NO_FPEN)) {
|
||||
control &= ~SM501_DC_PANEL_CONTROL_FPEN;
|
||||
writel(control, ctrl_reg);
|
||||
sm501fb_sync_regs(fbi);
|
||||
mdelay(10);
|
||||
}
|
||||
|
||||
if (pd->flags & SM501FB_FLAG_PANEL_USE_VBIASEN) {
|
||||
if (!(pd->flags & SM501FB_FLAG_PANEL_NO_VBIASEN)) {
|
||||
control &= ~SM501_DC_PANEL_CONTROL_BIAS;
|
||||
writel(control, ctrl_reg);
|
||||
sm501fb_sync_regs(fbi);
|
||||
|
|
|
|||
Loading…
Reference in a new issue