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>
This commit is contained in:
Elise Lennion 2016-10-27 22:23:35 -02:00 committed by Greg Kroah-Hartman
parent cefc2fc61e
commit 03140dabf5
7 changed files with 19 additions and 19 deletions

View File

@ -261,7 +261,7 @@ int ddk750_init_hw(struct initchip_param *pInitParam)
} }
if (pInitParam->setAllEngOff == 1) { if (pInitParam->setAllEngOff == 1) {
enable2DEngine(0); enable_2d_engine(0);
/* Disable Overlay, if a former application left it on */ /* Disable Overlay, if a former application left it on */
reg = PEEK32(VIDEO_DISPLAY_CTRL); reg = PEEK32(VIDEO_DISPLAY_CTRL);
@ -284,7 +284,7 @@ int ddk750_init_hw(struct initchip_param *pInitParam)
POKE32(DMA_ABORT_INTERRUPT, reg); POKE32(DMA_ABORT_INTERRUPT, reg);
/* Disable DMA Power, if a former application left it on */ /* Disable DMA Power, if a former application left it on */
enableDMA(0); enable_dma(0);
} }
/* We can add more initialization as needed. */ /* We can add more initialization as needed. */

View File

@ -153,5 +153,5 @@ void ddk750_setLogicalDispOut(disp_output_t output)
setDAC((output & DAC_MASK) >> DAC_OFFSET); setDAC((output & DAC_MASK) >> DAC_OFFSET);
if (output & DPMS_USAGE) if (output & DPMS_USAGE)
ddk750_setDPMS((output & DPMS_MASK) >> DPMS_OFFSET); ddk750_set_dpms((output & DPMS_MASK) >> DPMS_OFFSET);
} }

View File

@ -24,7 +24,7 @@ unsigned char bus_speed_mode
* Enable Hardware I2C power. * Enable Hardware I2C power.
* TODO: Check if we need to enable GPIO power? * TODO: Check if we need to enable GPIO power?
*/ */
enableI2C(1); enable_i2c(1);
/* Enable the I2C Controller and set the bus speed mode */ /* Enable the I2C Controller and set the bus speed mode */
value = PEEK32(I2C_CTRL) & ~(I2C_CTRL_MODE | I2C_CTRL_EN); value = PEEK32(I2C_CTRL) & ~(I2C_CTRL_MODE | I2C_CTRL_EN);
@ -45,7 +45,7 @@ void sm750_hw_i2c_close(void)
POKE32(I2C_CTRL, value); POKE32(I2C_CTRL, value);
/* Disable I2C Power */ /* Disable I2C Power */
enableI2C(0); enable_i2c(0);
/* Set GPIO 30 & 31 back as GPIO pins */ /* Set GPIO 30 & 31 back as GPIO pins */
value = PEEK32(GPIO_MUX); value = PEEK32(GPIO_MUX);

View File

@ -2,7 +2,7 @@
#include "ddk750_reg.h" #include "ddk750_reg.h"
#include "ddk750_power.h" #include "ddk750_power.h"
void ddk750_setDPMS(DPMS_t state) void ddk750_set_dpms(DPMS_t state)
{ {
unsigned int value; unsigned int value;
@ -17,7 +17,7 @@ void ddk750_setDPMS(DPMS_t state)
} }
} }
static unsigned int getPowerMode(void) static unsigned int get_power_mode(void)
{ {
if (sm750_get_chip_type() == SM750LE) if (sm750_get_chip_type() == SM750LE)
return 0; return 0;
@ -74,7 +74,7 @@ void set_power_mode(unsigned int powerMode)
void set_current_gate(unsigned int gate) void set_current_gate(unsigned int gate)
{ {
if (getPowerMode() == POWER_MODE_CTRL_MODE_MODE1) if (get_power_mode() == POWER_MODE_CTRL_MODE_MODE1)
POKE32(MODE1_GATE, gate); POKE32(MODE1_GATE, gate);
else else
POKE32(MODE0_GATE, gate); POKE32(MODE0_GATE, gate);
@ -85,7 +85,7 @@ void set_current_gate(unsigned int gate)
/* /*
* This function enable/disable the 2D engine. * This function enable/disable the 2D engine.
*/ */
void enable2DEngine(unsigned int enable) void enable_2d_engine(unsigned int enable)
{ {
u32 gate; u32 gate;
@ -98,7 +98,7 @@ void enable2DEngine(unsigned int enable)
set_current_gate(gate); set_current_gate(gate);
} }
void enableDMA(unsigned int enable) void enable_dma(unsigned int enable)
{ {
u32 gate; u32 gate;
@ -115,7 +115,7 @@ void enableDMA(unsigned int enable)
/* /*
* This function enable/disable the GPIO Engine * This function enable/disable the GPIO Engine
*/ */
void enableGPIO(unsigned int enable) void enable_gpio(unsigned int enable)
{ {
u32 gate; u32 gate;
@ -132,7 +132,7 @@ void enableGPIO(unsigned int enable)
/* /*
* This function enable/disable the I2C Engine * This function enable/disable the I2C Engine
*/ */
void enableI2C(unsigned int enable) void enable_i2c(unsigned int enable)
{ {
u32 gate; u32 gate;

View File

@ -14,29 +14,29 @@ DPMS_t;
(PEEK32(MISC_CTRL) & ~MISC_CTRL_DAC_POWER_OFF) | (off)); \ (PEEK32(MISC_CTRL) & ~MISC_CTRL_DAC_POWER_OFF) | (off)); \
} }
void ddk750_setDPMS(DPMS_t); void ddk750_set_dpms(DPMS_t);
void set_power_mode(unsigned int powerMode); void set_power_mode(unsigned int powerMode);
void set_current_gate(unsigned int gate); void set_current_gate(unsigned int gate);
/* /*
* This function enable/disable the 2D engine. * This function enable/disable the 2D engine.
*/ */
void enable2DEngine(unsigned int enable); void enable_2d_engine(unsigned int enable);
/* /*
* This function enable/disable the DMA Engine * This function enable/disable the DMA Engine
*/ */
void enableDMA(unsigned int enable); void enable_dma(unsigned int enable);
/* /*
* This function enable/disable the GPIO Engine * This function enable/disable the GPIO Engine
*/ */
void enableGPIO(unsigned int enable); void enable_gpio(unsigned int enable);
/* /*
* This function enable/disable the I2C Engine * This function enable/disable the I2C Engine
*/ */
void enableI2C(unsigned int enable); void enable_i2c(unsigned int enable);
#endif #endif

View File

@ -428,7 +428,7 @@ long sm750_sw_i2c_init(
PEEK32(sw_i2c_data_gpio_mux_reg) & ~(1 << sw_i2c_data_gpio)); PEEK32(sw_i2c_data_gpio_mux_reg) & ~(1 << sw_i2c_data_gpio));
/* Enable GPIO power */ /* Enable GPIO power */
enableGPIO(1); enable_gpio(1);
/* Clear the i2c lines. */ /* Clear the i2c lines. */
for (i = 0; i < 9; i++) for (i = 0; i < 9; i++)

View File

@ -479,7 +479,7 @@ void hw_sm750_initAccel(struct sm750_dev *sm750_dev)
{ {
u32 reg; u32 reg;
enable2DEngine(1); enable_2d_engine(1);
if (sm750_get_chip_type() == SM750LE) { if (sm750_get_chip_type() == SM750LE) {
reg = PEEK32(DE_STATE1); reg = PEEK32(DE_STATE1);