[PATCH 6/9] video: stm: read bits-per-pixel from device tree

Sascha Hauer s.hauer at pengutronix.de
Mon Jul 6 03:36:11 PDT 2015


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/video/stm.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/video/stm.c b/drivers/video/stm.c
index dd80a98..3d64238 100644
--- a/drivers/video/stm.c
+++ b/drivers/video/stm.c
@@ -559,6 +559,9 @@ static int stmfb_probe(struct device_d *hw_dev)
 			dev_err(hw_dev, "failed to get bus-width property\n");
 			return -EINVAL;
 		}
+
+		of_property_read_u32(display, "bits-per-pixel",
+				&fbi.info.bits_per_pixel);
 	}
 
 	ret = register_framebuffer(&fbi.info);
-- 
2.1.4




More information about the barebox mailing list