mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Radoslaw Pietrzyk <radoslaw.pietrzyk@gmail.com>
To: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	devel@driverdev.osuosl.org (open list:STAGING SUBSYSTEM),
	linux-kernel@vger.kernel.org (open list)
Cc: Radoslaw Pietrzyk <radoslaw.pietrzyk@gmail.com>
Subject: [PATCH v2] staging: fbtft: Allows bpp to be set from dt
Date: Mon, 13 Mar 2017 11:28:45 +0100	[thread overview]
Message-ID: <1489400925-2504-1-git-send-email-radoslaw.pietrzyk@gmail.com> (raw)
In-Reply-To: <1489137927-13347-2-git-send-email-radoslaw.pietrzyk@gmail.com>

Allows bpp to be set from dt

Signed-off-by: Radoslaw Pietrzyk <radoslaw.pietrzyk@gmail.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

  parent reply	other threads:[~2017-03-13 10:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-10  9:25 [PATCH] Allows setting bpp " Radoslaw Pietrzyk
2017-03-10  9:25 ` [PATCH] staging: fbtft: Allows bpp to be set " Radoslaw Pietrzyk
2017-03-12 14:27   ` Greg KH
2017-03-12 22:12   ` kbuild test robot
2017-03-13 10:28   ` Radoslaw Pietrzyk [this message]
2017-03-13 11:00     ` [PATCH v2] " Dan Carpenter
2017-03-13 11:07       ` Radosław Pietrzyk
2017-03-13 11:11         ` Dan Carpenter
2017-03-13 11:16           ` Radosław Pietrzyk
2017-03-13 11:19             ` Dan Carpenter
2017-03-13 11:21               ` Radosław Pietrzyk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1489400925-2504-1-git-send-email-radoslaw.pietrzyk@gmail.com \
    --to=radoslaw.pietrzyk@gmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=thomas.petazzoni@free-electrons.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®