Commit 9a2c874c authored by Antoine BLIN's avatar Antoine BLIN Committed by Greg Kroah-Hartman

staging: sm750fb: ddk750_power.c: Split lines over 80 characters.

Fix up "line over 80 characters" warning found by the checkpatch.pl script.
Signed-off-by: default avatarAntoine BLIN <antoine.blin@lip6.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9d7a0ffe
...@@ -8,7 +8,8 @@ void ddk750_setDPMS(DPMS_t state) ...@@ -8,7 +8,8 @@ void ddk750_setDPMS(DPMS_t state)
if (getChipType() == SM750LE) { if (getChipType() == SM750LE) {
value = PEEK32(CRT_DISPLAY_CTRL); value = PEEK32(CRT_DISPLAY_CTRL);
POKE32(CRT_DISPLAY_CTRL, FIELD_VALUE(value, CRT_DISPLAY_CTRL, DPMS, state)); POKE32(CRT_DISPLAY_CTRL, FIELD_VALUE(value, CRT_DISPLAY_CTRL,
DPMS, state));
} else { } else {
value = PEEK32(SYSTEM_CTRL); value = PEEK32(SYSTEM_CTRL);
value = FIELD_VALUE(value, SYSTEM_CTRL, DPMS, state); value = FIELD_VALUE(value, SYSTEM_CTRL, DPMS, state);
...@@ -39,15 +40,18 @@ void setPowerMode(unsigned int powerMode) ...@@ -39,15 +40,18 @@ void setPowerMode(unsigned int powerMode)
switch (powerMode) { switch (powerMode) {
case POWER_MODE_CTRL_MODE_MODE0: case POWER_MODE_CTRL_MODE_MODE0:
control_value = FIELD_SET(control_value, POWER_MODE_CTRL, MODE, MODE0); control_value = FIELD_SET(control_value, POWER_MODE_CTRL, MODE,
MODE0);
break; break;
case POWER_MODE_CTRL_MODE_MODE1: case POWER_MODE_CTRL_MODE_MODE1:
control_value = FIELD_SET(control_value, POWER_MODE_CTRL, MODE, MODE1); control_value = FIELD_SET(control_value, POWER_MODE_CTRL, MODE,
MODE1);
break; break;
case POWER_MODE_CTRL_MODE_SLEEP: case POWER_MODE_CTRL_MODE_SLEEP:
control_value = FIELD_SET(control_value, POWER_MODE_CTRL, MODE, SLEEP); control_value = FIELD_SET(control_value, POWER_MODE_CTRL, MODE,
SLEEP);
break; break;
default: default:
...@@ -138,8 +142,9 @@ void enableZVPort(unsigned int enable) ...@@ -138,8 +142,9 @@ void enableZVPort(unsigned int enable)
gate = FIELD_SET(gate, CURRENT_GATE, I2C, ON); gate = FIELD_SET(gate, CURRENT_GATE, I2C, ON);
#endif #endif
} else { } else {
/* Disable ZV Port Gate. There is no way to know whether the GPIO pins are being used /* Disable ZV Port Gate. There is no way to know whether the
or not. Therefore, do not disable the GPIO gate. */ GPIO pins are being used or not. Therefore, do not disable the
GPIO gate. */
gate = FIELD_SET(gate, CURRENT_GATE, ZVPORT, OFF); gate = FIELD_SET(gate, CURRENT_GATE, ZVPORT, OFF);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment