|
1 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | 2 | /* |
3 | | - * console driver for LCD2S 4x20 character displays connected through i2c. |
4 | | - * The display also has a spi interface, but the driver does not support |
| 3 | + * Console driver for LCD2S 4x20 character displays connected through i2c. |
| 4 | + * The display also has a SPI interface, but the driver does not support |
5 | 5 | * this yet. |
6 | 6 | * |
7 | | - * This is a driver allowing you to use a LCD2S 4x20 from modtronix |
| 7 | + * This is a driver allowing you to use a LCD2S 4x20 from Modtronix |
8 | 8 | * engineering as auxdisplay character device. |
9 | 9 | * |
10 | 10 | * (C) 2019 by Lemonage Software GmbH |
@@ -214,16 +214,15 @@ static int lcd2s_lines(struct charlcd *lcd, enum charlcd_lines lines) |
214 | 214 | return 0; |
215 | 215 | } |
216 | 216 |
|
| 217 | +/* |
| 218 | + * Generator: LGcxxxxx...xx; must have <c> between '0' and '7', |
| 219 | + * representing the numerical ASCII code of the redefined character, |
| 220 | + * and <xx...xx> a sequence of 16 hex digits representing 8 bytes |
| 221 | + * for each character. Most LCDs will only use 5 lower bits of |
| 222 | + * the 7 first bytes. |
| 223 | + */ |
217 | 224 | static int lcd2s_redefine_char(struct charlcd *lcd, char *esc) |
218 | 225 | { |
219 | | - /* Generator : LGcxxxxx...xx; must have <c> between '0' |
220 | | - * and '7', representing the numerical ASCII code of the |
221 | | - * redefined character, and <xx...xx> a sequence of 16 |
222 | | - * hex digits representing 8 bytes for each character. |
223 | | - * Most LCDs will only use 5 lower bits of the 7 first |
224 | | - * bytes. |
225 | | - */ |
226 | | - |
227 | 226 | struct lcd2s_data *lcd2s = lcd->drvdata; |
228 | 227 | u8 buf[LCD2S_CHARACTER_SIZE + 2] = { LCD2S_CMD_DEF_CUSTOM_CHAR }; |
229 | 228 | u8 value; |
|
0 commit comments