diff options
author | Lad, Prabhakar <prabhakar.csengg@gmail.com> | 2015-01-08 09:17:58 +0100 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-01-15 12:25:28 +0100 |
commit | 9561def0411bb810b6d3a53c15b03bfef4b1e2ab (patch) | |
tree | a4479f33fddbf0028bfda88c9a0cf5fb1f969a33 /drivers/video/fbdev/ssd1307fb.c | |
parent | fbdev: ssd1307fb: drop unused function ssd1307fb_write_data() (diff) | |
download | linux-9561def0411bb810b6d3a53c15b03bfef4b1e2ab.tar.xz linux-9561def0411bb810b6d3a53c15b03bfef4b1e2ab.zip |
fbdev: ssd1307fb: set default height if not found in DT node
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>
Diffstat (limited to 'drivers/video/fbdev/ssd1307fb.c')
-rw-r--r-- | drivers/video/fbdev/ssd1307fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c index 31d845bf79a8..3d6611f1958f 100644 --- 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; |