From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: "Chew, Chiau Ee" <chiau.ee.chew@intel.com>
Cc: Thierry Reding <thierry.reding@gmail.com>,
"linux-pwm@vger.kernel.org" <linux-pwm@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Chew, Kean Ho" <kean.ho.chew@intel.com>,
"Chang, Rebecca Swee Fun" <rebecca.swee.fun.chang@intel.com>
Subject: Re: [PATCH] pwm: add support for Intel Low Power Subsystem PWM
Date: Thu, 27 Feb 2014 15:13:37 +0200 [thread overview]
Message-ID: <20140227131337.GN5018@intel.com> (raw)
In-Reply-To: <604BF5F4C5D71041942BC7E84ED659EA0155B2E7@PGSMSX103.gar.corp.intel.com>
On Thu, Feb 27, 2014 at 09:03:41AM +0000, Chew, Chiau Ee wrote:
> > > > +static int pwm_lpss_probe(struct platform_device *pdev) {
> > > > + struct device *dev = &pdev->dev;
> > > > + struct pwm_lpss_chip *lpwm;
> > > > + int ret;
> > > > +
> > > > + lpwm = dev_get_platdata(dev);
> > >
> > > struct pwm_lpss_chip is defined in this source file, how can anybody
> > > else know what to fill platform_data with?
> >
> > Good point. Chiau Ee, do you recall why that thing is there in the first place?
>
> This is added because we would eventually want to have PCI enumeration support
> added. I think we shall find a way to better enable both the ACPI enumeration and
> PCI enumeration support.
Agreed. For now, can you please drop the platform data thing from the
driver? Thanks.
> > > > + if (!lpwm) {
> > > > + lpwm = pwm_lpss_acpi_get_pdata(pdev);
> > > > + if (!lpwm)
> > > > + return -ENODEV;
> > > > + }
> > > [...]
> > > > +static struct platform_driver pwm_lpss_driver = {
> > > > + .driver = {
> > > > + .name = "pwm-lpss",
> > > > + .acpi_match_table = ACPI_PTR(pwm_lpss_acpi_match),
> > >
> > > ACPI_PTR not needed since the table will always be there.
> >
> > OK.
> >
> > >
> > > > + },
> > > > + .probe = pwm_lpss_probe,
> > > > + .remove = pwm_lpss_remove,
> > > > +};
> > > > +module_platform_driver(pwm_lpss_driver);
> > > > +
> > > > +MODULE_DESCRIPTION("PWM driver for Intel LPSS");
> > > > +MODULE_AUTHOR("Mika Westerberg
> > <mika.westerberg@linux.intel.com>");
> > > > +MODULE_LICENSE("GPL");
> > >
> > > The file header says GPL v2, but "GPL" here means "GPL v2 or later".
> >
> > OK, we will change that to GPLv2.
> >
> > Thanks a lot for your review! We will do the changes and submit v2.
>
> Ok. I will make the changes accordingly.
Thanks.
next prev parent reply other threads:[~2014-02-27 13:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-20 18:00 [PATCH] pwm: add support for Intel Low Power Subsystem PWM Chew Chiau Ee
2014-01-20 13:28 ` One Thousand Gnomes
2014-01-21 8:52 ` Mika Westerberg
2014-01-21 19:43 ` Thierry Reding
2014-01-22 9:31 ` Mika Westerberg
2014-02-18 12:05 ` Chew, Chiau Ee
2014-01-23 16:21 ` One Thousand Gnomes
2014-02-26 14:38 ` Thierry Reding
2014-02-27 9:01 ` Mika Westerberg
2014-02-27 9:03 ` Chew, Chiau Ee
2014-02-27 13:13 ` Mika Westerberg [this message]
2014-02-27 13:34 ` Chew, Chiau Ee
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=20140227131337.GN5018@intel.com \
--to=mika.westerberg@linux.intel.com \
--cc=chiau.ee.chew@intel.com \
--cc=kean.ho.chew@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=rebecca.swee.fun.chang@intel.com \
--cc=thierry.reding@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.