diff options
-rw-r--r-- | Documentation/devicetree/bindings/auxdisplay/hit,hd44780.txt | 11 | ||||
-rw-r--r-- | drivers/auxdisplay/hd44780.c | 5 |
2 files changed, 9 insertions, 7 deletions
diff --git a/Documentation/devicetree/bindings/auxdisplay/hit,hd44780.txt b/Documentation/devicetree/bindings/auxdisplay/hit,hd44780.txt index ee4054da458d..2aa24b889923 100644 --- a/Documentation/devicetree/bindings/auxdisplay/hit,hd44780.txt +++ b/Documentation/devicetree/bindings/auxdisplay/hit,hd44780.txt | |||
@@ -15,8 +15,8 @@ Required properties: | |||
15 | - rs-gpios: Must contain a GPIO specifier, referring to the GPIO pin | 15 | - rs-gpios: Must contain a GPIO specifier, referring to the GPIO pin |
16 | connected to the "RS" (Register Select) signal line of the LCD Controller's | 16 | connected to the "RS" (Register Select) signal line of the LCD Controller's |
17 | bus interface, | 17 | bus interface, |
18 | - display-height: Height of the display, in character cells, | 18 | - display-height-chars: Height of the display, in character cells, |
19 | - display-width: Width of the display, in character cells. | 19 | - display-width-chars: Width of the display, in character cells. |
20 | 20 | ||
21 | Optional properties: | 21 | Optional properties: |
22 | - rw-gpios: Must contain a GPIO specifier, referring to the GPIO pin | 22 | - rw-gpios: Must contain a GPIO specifier, referring to the GPIO pin |
@@ -25,7 +25,8 @@ Optional properties: | |||
25 | - backlight-gpios: Must contain a GPIO specifier, referring to the GPIO pin | 25 | - backlight-gpios: Must contain a GPIO specifier, referring to the GPIO pin |
26 | used for enabling the LCD's backlight, | 26 | used for enabling the LCD's backlight, |
27 | - internal-buffer-width: Internal buffer width (default is 40 for displays | 27 | - internal-buffer-width: Internal buffer width (default is 40 for displays |
28 | with 1 or 2 lines, and display-width for displays with more than 2 lines). | 28 | with 1 or 2 lines, and display-width-chars for displays with more than 2 |
29 | lines). | ||
29 | 30 | ||
30 | Example: | 31 | Example: |
31 | 32 | ||
@@ -39,6 +40,6 @@ Example: | |||
39 | enable-gpios = <&hc595 4 GPIO_ACTIVE_HIGH>; | 40 | enable-gpios = <&hc595 4 GPIO_ACTIVE_HIGH>; |
40 | rs-gpios = <&hc595 5 GPIO_ACTIVE_HIGH>; | 41 | rs-gpios = <&hc595 5 GPIO_ACTIVE_HIGH>; |
41 | 42 | ||
42 | display-height = <2>; | 43 | display-height-chars = <2>; |
43 | display-width = <16>; | 44 | display-width-chars = <16>; |
44 | }; | 45 | }; |
diff --git a/drivers/auxdisplay/hd44780.c b/drivers/auxdisplay/hd44780.c index 1665ac6ef9ff..036eec404289 100644 --- a/drivers/auxdisplay/hd44780.c +++ b/drivers/auxdisplay/hd44780.c | |||
@@ -264,10 +264,11 @@ static int hd44780_probe(struct platform_device *pdev) | |||
264 | } | 264 | } |
265 | 265 | ||
266 | /* Required properties */ | 266 | /* Required properties */ |
267 | ret = device_property_read_u32(dev, "display-height", &lcd->height); | 267 | ret = device_property_read_u32(dev, "display-height-chars", |
268 | &lcd->height); | ||
268 | if (ret) | 269 | if (ret) |
269 | goto fail; | 270 | goto fail; |
270 | ret = device_property_read_u32(dev, "display-width", &lcd->width); | 271 | ret = device_property_read_u32(dev, "display-width-chars", &lcd->width); |
271 | if (ret) | 272 | if (ret) |
272 | goto fail; | 273 | goto fail; |
273 | 274 | ||