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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
---
 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


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux