Commit 84a1ed04 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Greg Kroah-Hartman

misc: panel: Fix LCD_FLAG_F/LCD_FLAG_N exchange

LCD_FLAG_F is the font flag, LCD_FLAG_N is the two-lines flag.
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 90beaf64
...@@ -1278,9 +1278,10 @@ static inline int handle_lcd_special_code(void) ...@@ -1278,9 +1278,10 @@ static inline int handle_lcd_special_code(void)
lcd_write_cmd(LCD_CMD_FUNCTION_SET lcd_write_cmd(LCD_CMD_FUNCTION_SET
| LCD_CMD_DATA_LEN_8BITS | LCD_CMD_DATA_LEN_8BITS
| ((lcd.flags & LCD_FLAG_F) | ((lcd.flags & LCD_FLAG_F)
? LCD_CMD_TWO_LINES : 0)
| ((lcd.flags & LCD_FLAG_N)
? LCD_CMD_FONT_5X10_DOTS ? LCD_CMD_FONT_5X10_DOTS
: 0)
| ((lcd.flags & LCD_FLAG_N)
? LCD_CMD_TWO_LINES
: 0)); : 0));
/* check whether L flag was changed */ /* check whether L flag was changed */
else if ((oldflags ^ lcd.flags) & (LCD_FLAG_L)) { else if ((oldflags ^ lcd.flags) & (LCD_FLAG_L)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment