[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1489400925-2504-1-git-send-email-radoslaw.pietrzyk@gmail.com>
Date: Mon, 13 Mar 2017 11:28:45 +0100
From: Radoslaw Pietrzyk <radoslaw.pietrzyk@...il.com>
To: Thomas Petazzoni <thomas.petazzoni@...e-electrons.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
devel@...verdev.osuosl.org (open list:STAGING SUBSYSTEM),
linux-kernel@...r.kernel.org (open list)
Cc: Radoslaw Pietrzyk <radoslaw.pietrzyk@...il.com>
Subject: [PATCH v2] staging: fbtft: Allows bpp to be set from dt
Allows bpp to be set from dt
Signed-off-by: Radoslaw Pietrzyk <radoslaw.pietrzyk@...il.com>
---
drivers/staging/fbtft/fbtft-core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c
index 7c8af29..cb0c10d 100644
--- a/drivers/staging/fbtft/fbtft-core.c
+++ b/drivers/staging/fbtft/fbtft-core.c
@@ -685,6 +685,8 @@ struct fb_info *fbtft_framebuffer_alloc(struct fbtft_display *display,
/* override driver values? */
if (pdata->fps)
fps = pdata->fps;
+ if (pdata->display.bpp)
+ bpp = pdata->display.bpp;
if (pdata->txbuflen)
txbuflen = pdata->txbuflen;
if (pdata->display.init_sequence)
--
1.9.1
Powered by blists - more mailing lists