mirror of https://gitee.com/openkylin/linux.git
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:
parent
f6535d21e3
commit
9561def041
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue