From: Daniel Thompson <daniel.thompson@linaro.org>
To: Meghana Madhyastha <meghana.madhyastha@gmail.com>
Cc: "Lee Jones" <lee.jones@linaro.org>,
"Jingoo Han" <jingoohan1@gmail.com>,
"Thierry Reding" <thierry.reding@gmail.com>,
"Noralf Trønnes" <noralf@tronnes.org>,
"Tomi Valkeinen" <tomi.valkeinen@ti.com>,
"Daniel Vetter" <daniel.vetter@intel.com>,
"Sean Paul" <seanpaul@chromium.org>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v17 00/10] Add backlight helper functions
Date: Fri, 19 Jan 2018 11:18:08 +0000 [thread overview]
Message-ID: <20180119111808.jpm4erds7o3stwso@oak.lan> (raw)
In-Reply-To: <cover.1516358037.git.meghana.madhyastha@gmail.com>
On Fri, Jan 19, 2018 at 10:37:58AM +0000, Meghana Madhyastha wrote:
> Move drm helper functions from tinydrm-helpers to linux/backlight for
> ease of use by callers in other drivers.
>
> changes in v17:
> -set fb_blank along with clearing the BL_CORE_FBBLANK bit
> -rebase with drm-misc-next
> -fix checkpath errors/warnings
> -Make the gpio_backlight issue appear as a comment in the
> code and not as part of the docs
> -rebase with drm-misc-next
> -convert st7735r callers from tinydrm specific helpers
> to new generic backlight helpers
> -remove select BACKLIGHT_LCD_SUPPORT and select
> BACKLIGHT_CLASS_DEVICE from tinydrm/Kconfig
> -fix checkpath errors/warnings
> -rename devm_backlight_put to
> devm_backlight_release
> -remove redundant NULL check
> -remove put_device() to avoid double put
> as we are using the devm version
>
> Meghana Madhyastha (10):
> video: backlight: Add helpers to enable and disable backlight
> drm/tinydrm: Convert tinydrm_enable/disable_backlight to
> backlight_enable/disable
> video: backlight: Add of_find_backlight helper in backlight.c
> drm/tinydrm: Replace tinydrm_of_find_backlight with of_find_backlight
> video: backlight: Add devres versions of of_find_backlight
> drm/tinydrm: Call devres version of of_find_backlight
> drm/panel: Use backlight_enable/disable helpers
> drm/omapdrm: Use backlight_enable/disable helpers
> drm/panel: Use of_find_backlight helper
> drm/omapdrm: Use of_find_backlight helper
So, I've acked all the backlight bits (if there's a v18 please include
the acks in the posting).
I've read the other patches and I *like* them. Switching to
backlight_enable()/disable() looks like a good way to ensure
drivers don't interact with all those flags in unexpected ways
(so its a good contribution to eventually cleaning them up).
Daniel.
>
> drivers/gpu/drm/omapdrm/displays/panel-dpi.c | 32 ++-------
> drivers/gpu/drm/panel/panel-innolux-p079zca.c | 29 ++------
> drivers/gpu/drm/panel/panel-jdi-lt070me05000.c | 6 +-
> drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c | 35 ++-------
> drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c | 35 ++-------
> drivers/gpu/drm/tinydrm/Kconfig | 2 -
> drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 95 -------------------------
> drivers/gpu/drm/tinydrm/mi0283qt.c | 3 +-
> drivers/gpu/drm/tinydrm/mipi-dbi.c | 4 +-
> drivers/gpu/drm/tinydrm/st7735r.c | 3 +-
> drivers/video/backlight/backlight.c | 73 +++++++++++++++++++
> include/drm/tinydrm/tinydrm-helpers.h | 4 --
> include/linux/backlight.h | 58 +++++++++++++++
> 13 files changed, 164 insertions(+), 215 deletions(-)
>
> --
> 2.11.0
>
prev parent reply other threads:[~2018-01-19 11:18 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-19 10:37 Meghana Madhyastha
2018-01-19 10:39 ` [PATCH v17 01/10] video: backlight: Add helpers to enable and disable backlight Meghana Madhyastha
2018-01-19 11:04 ` Daniel Thompson
2018-01-19 14:26 ` Lee Jones
2018-01-19 10:40 ` [PATCH v17 02/10] drm/tinydrm: Convert tinydrm_enable/disable_backlight to backlight_enable/disable Meghana Madhyastha
2018-01-19 10:42 ` [PATCH v17 03/10] video: backlight: Add of_find_backlight helper in backlight.c Meghana Madhyastha
2018-01-19 11:05 ` Daniel Thompson
2018-01-21 18:35 ` Noralf Trønnes
2018-01-21 18:44 ` Noralf Trønnes
2018-01-19 10:43 ` [PATCH v17 04/10] drm/tinydrm: Replace tinydrm_of_find_backlight with of_find_backlight Meghana Madhyastha
2018-01-19 10:44 ` [PATCH v17 05/10] video: backlight: Add devres versions of of_find_backlight Meghana Madhyastha
2018-01-19 11:06 ` Daniel Thompson
2018-01-19 10:46 ` [PATCH v17 06/10] drm/tinydrm: Call devres version " Meghana Madhyastha
2018-01-21 18:42 ` Noralf Trønnes
2018-01-19 10:46 ` [PATCH v17 07/10] drm/panel: Use backlight_enable/disable helpers Meghana Madhyastha
2018-01-19 10:47 ` [PATCH v17 08/10] drm/omapdrm: " Meghana Madhyastha
2018-01-19 10:47 ` [PATCH v17 09/10] drm/panel: Use of_find_backlight helper Meghana Madhyastha
2018-01-21 18:39 ` Noralf Trønnes
2018-01-19 10:48 ` [PATCH v17 10/10] drm/omapdrm: " Meghana Madhyastha
2018-01-19 11:18 ` Daniel Thompson [this message]
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=20180119111808.jpm4erds7o3stwso@oak.lan \
--to=daniel.thompson@linaro.org \
--cc=daniel.vetter@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jingoohan1@gmail.com \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=meghana.madhyastha@gmail.com \
--cc=noralf@tronnes.org \
--cc=seanpaul@chromium.org \
--cc=thierry.reding@gmail.com \
--cc=tomi.valkeinen@ti.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®