staging: panel: Remove unused variable
Remove lcd.left_shift because it is only written to at some places but never read from. Signed-off-by: Mariusz Gorski <marius.gorski@gmail.com> Acked-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
29d586247d
Коммит
1216ed713b
|
@ -228,9 +228,6 @@ static struct {
|
||||||
bool initialized;
|
bool initialized;
|
||||||
bool must_clear;
|
bool must_clear;
|
||||||
|
|
||||||
/* TODO: use bool here? */
|
|
||||||
char left_shift;
|
|
||||||
|
|
||||||
int height;
|
int height;
|
||||||
int width;
|
int width;
|
||||||
int bwidth;
|
int bwidth;
|
||||||
|
@ -1135,12 +1132,10 @@ static inline int handle_lcd_special_code(void)
|
||||||
processed = 1;
|
processed = 1;
|
||||||
break;
|
break;
|
||||||
case 'L': /* shift display left */
|
case 'L': /* shift display left */
|
||||||
lcd.left_shift++;
|
|
||||||
lcd_write_cmd(0x18);
|
lcd_write_cmd(0x18);
|
||||||
processed = 1;
|
processed = 1;
|
||||||
break;
|
break;
|
||||||
case 'R': /* shift display right */
|
case 'R': /* shift display right */
|
||||||
lcd.left_shift--;
|
|
||||||
lcd_write_cmd(0x1C);
|
lcd_write_cmd(0x1C);
|
||||||
processed = 1;
|
processed = 1;
|
||||||
break;
|
break;
|
||||||
|
@ -1157,7 +1152,6 @@ static inline int handle_lcd_special_code(void)
|
||||||
}
|
}
|
||||||
case 'I': /* reinitialize display */
|
case 'I': /* reinitialize display */
|
||||||
lcd_init_display();
|
lcd_init_display();
|
||||||
lcd.left_shift = 0;
|
|
||||||
processed = 1;
|
processed = 1;
|
||||||
break;
|
break;
|
||||||
case 'G': {
|
case 'G': {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче