mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
52d0744d75
Renaming some symbols inside this driver caused a conflict with
an existing function, which in turn results in a link error:
drivers/staging/sm750fb/sm750fb.o: In function `enable_dma':
ddk750_hwi2c.c:(.text.enable_dma+0x0): multiple definition of `enable_dma'
This adds a sm750_ prefix to each global symbol in the sm750fb
driver that does not already have one. I manually looked for the
symbols and then converted the driver using
for i in calc_pll_value format_pll_reg set_power_mode set_current_gate \
enable_2d_engine enable_dma enable_gpio enable_i2c hw_set2dformat \
hw_de_init hw_fillrect hw_copyarea hw_imageblit hw_cursor_enable \
hw_cursor_disable hw_cursor_setSize hw_cursor_setPos \
hw_cursor_setColor hw_cursor_setData hw_cursor_setData2 ;
do
sed -i "s:\<$i\>:sm750_$i:" drivers/staging/sm750fb/*.[ch]
done
Fixes: 03140dabf5
("staging: sm750fb: Replace functions CamelCase naming with underscores.")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
42 lines
840 B
C
42 lines
840 B
C
#ifndef DDK750_POWER_H__
|
|
#define DDK750_POWER_H__
|
|
|
|
typedef enum _DPMS_t {
|
|
crtDPMS_ON = 0x0,
|
|
crtDPMS_STANDBY = 0x1,
|
|
crtDPMS_SUSPEND = 0x2,
|
|
crtDPMS_OFF = 0x3,
|
|
}
|
|
DPMS_t;
|
|
|
|
#define setDAC(off) { \
|
|
POKE32(MISC_CTRL, \
|
|
(PEEK32(MISC_CTRL) & ~MISC_CTRL_DAC_POWER_OFF) | (off)); \
|
|
}
|
|
|
|
void ddk750_set_dpms(DPMS_t);
|
|
void sm750_set_power_mode(unsigned int powerMode);
|
|
void sm750_set_current_gate(unsigned int gate);
|
|
|
|
/*
|
|
* This function enable/disable the 2D engine.
|
|
*/
|
|
void sm750_enable_2d_engine(unsigned int enable);
|
|
|
|
/*
|
|
* This function enable/disable the DMA Engine
|
|
*/
|
|
void sm750_enable_dma(unsigned int enable);
|
|
|
|
/*
|
|
* This function enable/disable the GPIO Engine
|
|
*/
|
|
void sm750_enable_gpio(unsigned int enable);
|
|
|
|
/*
|
|
* This function enable/disable the I2C Engine
|
|
*/
|
|
void sm750_enable_i2c(unsigned int enable);
|
|
|
|
|
|
#endif
|