From: Lee Jones <lee@kernel.org>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Daniel Thompson <daniel.thompson@linaro.org>,
Jingoo Han <jingoohan1@gmail.com>, Helge Deller <deller@gmx.de>,
linux-pwm@vger.kernel.org, linux-fbdev@vger.kernel.org,
kernel@pengutronix.de, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] backlight: lp8788: Drop support for platform data
Date: Thu, 14 Mar 2024 10:20:35 +0000 [thread overview]
Message-ID: <20240314102035.GI1522089@google.com> (raw)
In-Reply-To: <7nvqboywxhviyuzkiesy4qfqybxx7vc5sw2seluc3dwnhk3q5h@hlzwxhnm2q6r>
On Wed, 13 Mar 2024, Uwe Kleine-König wrote:
> Hello,
>
> On Wed, Mar 13, 2024 at 01:48:27PM +0100, Uwe Kleine-König wrote:
> > diff --git a/drivers/video/backlight/lp8788_bl.c b/drivers/video/backlight/lp8788_bl.c
> > index 31f97230ee50..f3a89677c31c 100644
> > --- a/drivers/video/backlight/lp8788_bl.c
> > +++ b/drivers/video/backlight/lp8788_bl.c
> > @@ -12,7 +12,6 @@
> > #include <linux/mfd/lp8788.h>
> > #include <linux/module.h>
> > #include <linux/platform_device.h>
> > -#include <linux/pwm.h>
> > #include <linux/slab.h>
> >
> > /* Register address */
> > @@ -31,149 +30,41 @@
> > #define MAX_BRIGHTNESS 127
> > #define DEFAULT_BL_NAME "lcd-backlight"
> >
> > -struct lp8788_bl_config {
> > - enum lp8788_bl_ctrl_mode bl_mode;
> > - enum lp8788_bl_dim_mode dim_mode;
> > - enum lp8788_bl_full_scale_current full_scale;
> > - enum lp8788_bl_ramp_step rise_time;
> > - enum lp8788_bl_ramp_step fall_time;
> > - enum pwm_polarity pwm_pol;
> > -};
> > -
> > struct lp8788_bl {
> > struct lp8788 *lp;
> > struct backlight_device *bl_dev;
> > - struct lp8788_backlight_platform_data *pdata;
> > - enum lp8788_bl_ctrl_mode mode;
> > struct pwm_device *pwm;
>
> Actually this pwm_device member should be dropped, too. I wonder why
> this even passes a W=1 build without a warning ...
>
> @Lee: Feel free to fix this up while applying, or tell me if you prefer
> an incremental fixup or a complete v2.
Either of the last 2 options would be fine.
--
Lee Jones [李琼斯]
next prev parent reply other threads:[~2024-03-14 10:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-13 12:48 [PATCH] backlight: lp8788: Drop support for platform data Uwe Kleine-König
2024-03-13 21:36 ` Uwe Kleine-König
2024-03-14 10:20 ` Lee Jones [this message]
2024-03-14 10:56 ` Uwe Kleine-König
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=20240314102035.GI1522089@google.com \
--to=lee@kernel.org \
--cc=daniel.thompson@linaro.org \
--cc=deller@gmx.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=jingoohan1@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=u.kleine-koenig@pengutronix.de \
/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;
as well as URLs for NNTP newsgroup(s).