Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1574839 > unrolled thread

[PATCH 01/13] misc: panel: Fix LCD_FLAG_F/LCD_FLAG_N exchange

Started byGeert Uytterhoeven <geert@linux-m68k.org>
First post2017-02-06 15:40 +0100
Last post2017-02-06 15:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 01/13] misc: panel: Fix LCD_FLAG_F/LCD_FLAG_N exchange Geert Uytterhoeven <geert@linux-m68k.org> - 2017-02-06 15:40 +0100

#1574839 — [PATCH 01/13] misc: panel: Fix LCD_FLAG_F/LCD_FLAG_N exchange

FromGeert Uytterhoeven <geert@linux-m68k.org>
Date2017-02-06 15:40 +0100
Subject[PATCH 01/13] misc: panel: Fix LCD_FLAG_F/LCD_FLAG_N exchange
Message-ID<t7SCu-68H-23@gated-at.bofh.it>
LCD_FLAG_F is the font flag, LCD_FLAG_N is the two-lines flag.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/misc/panel.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/misc/panel.c b/drivers/misc/panel.c
index 6030ac5b8c639190..cac7ac62ce5b71d7 100644
--- a/drivers/misc/panel.c
+++ b/drivers/misc/panel.c
@@ -1278,9 +1278,10 @@ static inline int handle_lcd_special_code(void)
 			lcd_write_cmd(LCD_CMD_FUNCTION_SET
 				      | LCD_CMD_DATA_LEN_8BITS
 				      | ((lcd.flags & LCD_FLAG_F)
-						      ? LCD_CMD_TWO_LINES : 0)
-				      | ((lcd.flags & LCD_FLAG_N)
 						      ? LCD_CMD_FONT_5X10_DOTS
+								      : 0)
+				      | ((lcd.flags & LCD_FLAG_N)
+						      ? LCD_CMD_TWO_LINES
 								      : 0));
 		/* check whether L flag was changed */
 		else if ((oldflags ^ lcd.flags) & (LCD_FLAG_L)) {
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web