aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/sm750fb/ddk750_power.c
diff options
context:
space:
mode:
authorElise Lennion <elise.lennion@gmail.com>2016-10-13 19:25:52 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-16 10:27:36 +0200
commit3fcb465f1e74ef0cb1edd921c3551170548051e2 (patch)
treeb6843bcc3a3a6c880011ed7cb95cee67c2d7b9c5 /drivers/staging/sm750fb/ddk750_power.c
parentstaging: greybus: audio_codec: Remove useless return statement. (diff)
downloadlinux-dev-3fcb465f1e74ef0cb1edd921c3551170548051e2.tar.xz
linux-dev-3fcb465f1e74ef0cb1edd921c3551170548051e2.zip
staging: sm750fb: Replace functions CamelCase naming with underscores.
Replace CamelCase function names with underscores to comply with the standard kernel coding style. Signed-off-by: Elise Lennion <elise.lennion@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm750fb/ddk750_power.c')
-rw-r--r--drivers/staging/sm750fb/ddk750_power.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/sm750fb/ddk750_power.c b/drivers/staging/sm750fb/ddk750_power.c
index 710106e35bcf..c9ea464e2a78 100644
--- a/drivers/staging/sm750fb/ddk750_power.c
+++ b/drivers/staging/sm750fb/ddk750_power.c
@@ -29,7 +29,7 @@ static unsigned int getPowerMode(void)
* SM50x can operate in one of three modes: 0, 1 or Sleep.
* On hardware reset, power mode 0 is default.
*/
-void setPowerMode(unsigned int powerMode)
+void set_power_mode(unsigned int powerMode)
{
unsigned int control_value = 0;
@@ -72,7 +72,7 @@ void setPowerMode(unsigned int powerMode)
POKE32(POWER_MODE_CTRL, control_value);
}
-void setCurrentGate(unsigned int gate)
+void set_current_gate(unsigned int gate)
{
unsigned int gate_reg;
unsigned int mode;
@@ -111,7 +111,7 @@ void enable2DEngine(unsigned int enable)
else
gate &= ~(CURRENT_GATE_DE | CURRENT_GATE_CSC);
- setCurrentGate(gate);
+ set_current_gate(gate);
}
void enableDMA(unsigned int enable)
@@ -125,7 +125,7 @@ void enableDMA(unsigned int enable)
else
gate &= ~CURRENT_GATE_DMA;
- setCurrentGate(gate);
+ set_current_gate(gate);
}
/*
@@ -142,7 +142,7 @@ void enableGPIO(unsigned int enable)
else
gate &= ~CURRENT_GATE_GPIO;
- setCurrentGate(gate);
+ set_current_gate(gate);
}
/*
@@ -159,7 +159,7 @@ void enableI2C(unsigned int enable)
else
gate &= ~CURRENT_GATE_I2C;
- setCurrentGate(gate);
+ set_current_gate(gate);
}