projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6535d2
)
fbdev: ssd1307fb: set default height if not found in DT node
author
Lad, Prabhakar
<prabhakar.csengg@gmail.com>
Thu, 8 Jan 2015 08:17:58 +0000
(08:17 +0000)
committer
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Thu, 15 Jan 2015 11:25:28 +0000
(13:25 +0200)
this patch sets the default height if its not found in DT.
Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/ssd1307fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/ssd1307fb.c
b/drivers/video/fbdev/ssd1307fb.c
index
31d845b
..
3d6611f
100644
(file)
--- a/
drivers/video/fbdev/ssd1307fb.c
+++ b/
drivers/video/fbdev/ssd1307fb.c
@@
-443,7
+443,7
@@
static int ssd1307fb_probe(struct i2c_client *client,
par->width = 96;
if (of_property_read_u32(node, "solomon,height", &par->height))
- par->
width
= 16;
+ par->
height
= 16;
if (of_property_read_u32(node, "solomon,page-offset", &par->page_offset))
par->page_offset = 1;