staging: sm750fb: Remove typedef
Change typedef enum to enum and ensure compatibility of change. Issue found with checkpatch. Signed-off-by: Nishka Dasgupta <nishka.dasgupta_ug18@ashoka.edu.in> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8161481385
commit
ad7d95e979
@ -111,7 +111,7 @@ static void swPanelPowerSequence(int disp, int delay)
|
|||||||
primary_wait_vertical_sync(delay);
|
primary_wait_vertical_sync(delay);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ddk750_setLogicalDispOut(disp_output_t output)
|
void ddk750_setLogicalDispOut(enum disp_output output)
|
||||||
{
|
{
|
||||||
unsigned int reg;
|
unsigned int reg;
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@
|
|||||||
* LCD1 means panel path TFT1 & panel path DVI (so enable DAC)
|
* LCD1 means panel path TFT1 & panel path DVI (so enable DAC)
|
||||||
* CRT means crt path DSUB
|
* CRT means crt path DSUB
|
||||||
*/
|
*/
|
||||||
typedef enum _disp_output_t {
|
enum disp_output {
|
||||||
do_LCD1_PRI = PNL_2_PRI | PRI_TP_ON | PNL_SEQ_ON | DAC_ON,
|
do_LCD1_PRI = PNL_2_PRI | PRI_TP_ON | PNL_SEQ_ON | DAC_ON,
|
||||||
do_LCD1_SEC = PNL_2_SEC | SEC_TP_ON | PNL_SEQ_ON | DAC_ON,
|
do_LCD1_SEC = PNL_2_SEC | SEC_TP_ON | PNL_SEQ_ON | DAC_ON,
|
||||||
do_LCD2_PRI = CRT_2_PRI | PRI_TP_ON | DUAL_TFT_ON,
|
do_LCD2_PRI = CRT_2_PRI | PRI_TP_ON | DUAL_TFT_ON,
|
||||||
@ -100,9 +100,8 @@ typedef enum _disp_output_t {
|
|||||||
*/
|
*/
|
||||||
do_CRT_PRI = CRT_2_PRI | PRI_TP_ON | DPMS_ON | DAC_ON,
|
do_CRT_PRI = CRT_2_PRI | PRI_TP_ON | DPMS_ON | DAC_ON,
|
||||||
do_CRT_SEC = CRT_2_SEC | SEC_TP_ON | DPMS_ON | DAC_ON,
|
do_CRT_SEC = CRT_2_SEC | SEC_TP_ON | DPMS_ON | DAC_ON,
|
||||||
}
|
};
|
||||||
disp_output_t;
|
|
||||||
|
|
||||||
void ddk750_setLogicalDispOut(disp_output_t output);
|
void ddk750_setLogicalDispOut(enum disp_output output);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -185,7 +185,7 @@ int hw_sm750_output_setMode(struct lynxfb_output *output,
|
|||||||
struct fb_fix_screeninfo *fix)
|
struct fb_fix_screeninfo *fix)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
disp_output_t disp_set;
|
enum disp_output disp_set;
|
||||||
int channel;
|
int channel;
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user