From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Peter Ujfalusi <peter.ujfalusi@ti.com>
Cc: Nicolae Rosia <Nicolae_Rosia@mentor.com>,
Marek Belisko <marek@goldelico.com>,
Baruch Siach <baruch@tkos.co.il>,
linux-input@vger.kernel.org, linux-omap@vger.kernel.org,
Tony Lindgren <tony@atomide.com>
Subject: Re: [PATCH] Input: twl4030-vibra: remove legacy pdata support
Date: Tue, 22 Nov 2016 17:33:48 -0800 [thread overview]
Message-ID: <20161123013348.GB21078@dtor-ws> (raw)
In-Reply-To: <d30d4cca-9fcf-befa-0389-1aafaef99ce8@ti.com>
On Tue, Nov 22, 2016 at 01:19:36PM +0200, Peter Ujfalusi wrote:
>
>
> On 11/22/2016 12:59 PM, Nicolae Rosia wrote:
> > Remove dead code since all users are device tree enabled.
>
> Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
>
> > Signed-off-by: Nicolae Rosia <Nicolae_Rosia@mentor.com>
> > ---
> > drivers/input/misc/twl4030-vibra.c | 13 ++++---------
> > 1 file changed, 4 insertions(+), 9 deletions(-)
> >
> > diff --git a/drivers/input/misc/twl4030-vibra.c b/drivers/input/misc/twl4030-vibra.c
> > index caa5a62..5acc241 100644
> > --- a/drivers/input/misc/twl4030-vibra.c
> > +++ b/drivers/input/misc/twl4030-vibra.c
> > @@ -177,12 +177,8 @@ static int __maybe_unused twl4030_vibra_resume(struct device *dev)
> > static SIMPLE_DEV_PM_OPS(twl4030_vibra_pm_ops,
> > twl4030_vibra_suspend, twl4030_vibra_resume);
> >
> > -static bool twl4030_vibra_check_coexist(struct twl4030_vibra_data *pdata,
> > - struct device_node *node)
> > +static bool twl4030_vibra_check_coexist(struct device_node *node)
> > {
> > - if (pdata && pdata->coexist)
> > - return true;
> > -
> > node = of_find_node_by_name(node, "codec");
> > if (node) {
> > of_node_put(node);
Do we need this wrapper anymore?
> > @@ -194,13 +190,12 @@ static bool twl4030_vibra_check_coexist(struct twl4030_vibra_data *pdata,
> >
> > static int twl4030_vibra_probe(struct platform_device *pdev)
> > {
> > - struct twl4030_vibra_data *pdata = dev_get_platdata(&pdev->dev);
Should we also remove twl4030_vibra_data definition?
> > struct device_node *twl4030_core_node = pdev->dev.parent->of_node;
> > struct vibra_info *info;
> > int ret;
> >
> > - if (!pdata && !twl4030_core_node) {
> > - dev_dbg(&pdev->dev, "platform_data not available\n");
> > + if (!twl4030_core_node) {
> > + dev_err(&pdev->dev, "no DT info\n\n");
Why double newline?
> > return -EINVAL;
> > }
> >
> > @@ -209,7 +204,7 @@ static int twl4030_vibra_probe(struct platform_device *pdev)
> > return -ENOMEM;
> >
> > info->dev = &pdev->dev;
> > - info->coexist = twl4030_vibra_check_coexist(pdata, twl4030_core_node);
> > + info->coexist = twl4030_vibra_check_coexist(twl4030_core_node);
> > INIT_WORK(&info->play_work, vibra_play_work);
> >
> > info->input_dev = devm_input_allocate_device(&pdev->dev);
> >
Thanks.
--
Dmitry
next prev parent reply other threads:[~2016-11-23 1:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-22 10:59 [PATCH] Input: twl4030-vibra: remove legacy pdata support Nicolae Rosia
2016-11-22 11:19 ` Peter Ujfalusi
2016-11-23 1:33 ` Dmitry Torokhov [this message]
2016-11-23 9:59 ` Nicolae Rosia
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=20161123013348.GB21078@dtor-ws \
--to=dmitry.torokhov@gmail.com \
--cc=Nicolae_Rosia@mentor.com \
--cc=baruch@tkos.co.il \
--cc=linux-input@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=marek@goldelico.com \
--cc=peter.ujfalusi@ti.com \
--cc=tony@atomide.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;
as well as URLs for NNTP newsgroup(s).