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>
This commit is contained in:
Lad, Prabhakar 2015-01-08 08:17:58 +00:00 committed by Tomi Valkeinen
parent f6535d21e3
commit 9561def041
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,7 @@ static int ssd1307fb_probe(struct i2c_client *client,
par->width = 96; par->width = 96;
if (of_property_read_u32(node, "solomon,height", &par->height)) 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)) if (of_property_read_u32(node, "solomon,page-offset", &par->page_offset))
par->page_offset = 1; par->page_offset = 1;