fbdev: ssd1307fb: set default height if not found in DT node
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Thu, 8 Jan 2015 08:17:58 +0000 (08:17 +0000)
committerTomi 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

index 31d845b..3d6611f 100644 (file)
@@ -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;