public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Matt Ranostay <matt.ranostay@konsulko.com>
Cc: Max Leiter <maxwell.leiter@gmail.com>,
	"open list:IIO SUBSYSTEM AND DRIVERS" <linux-iio@vger.kernel.org>,
	blaz@mxxn.io, Lars-Peter Clausen <lars@metafoo.de>,
	Peter Meerwald-Stadler <pmeerw@pmeerw.net>,
	Alexandru Ardelean <alexandru.ardelean@analog.com>,
	open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] iio:light:apds9960 add detection for MSHW0184 ACPI device in apds9960 driver
Date: Mon, 21 Dec 2020 14:42:55 +0000	[thread overview]
Message-ID: <20201221144255.5657887f@archlinux> (raw)
In-Reply-To: <CAJCx=gm2hbfRePezjEh14a=DENX2dj8gc+SW8T-1NDWQY4eSTg@mail.gmail.com>

On Sun, 20 Dec 2020 14:05:17 -0800
Matt Ranostay <matt.ranostay@konsulko.com> wrote:

> On Sat, Dec 19, 2020 at 5:51 PM Max Leiter <maxwell.leiter@gmail.com> wrote:
> >
> > The device is used in the Microsoft Surface Book 3 and Surface Pro 7
> >
> > Signed-off-by: Max Leiter <maxwell.leiter@gmail.com>  
> 
> Reviewed-by: Matt Ranostay <matt.ranostay@konsulko.com>
Applied to the togreg branch of iio.git and pushed out as testing for
the autobuilders to see if we missed anything.

Thanks,

Jonathan

> 
> > ---
> >  drivers/iio/light/apds9960.c | 8 ++++++++
> >  1 file changed, 8 insertions(+)
> >
> > diff --git a/drivers/iio/light/apds9960.c b/drivers/iio/light/apds9960.c
> > index 9afb3fcc74e6..20719141c03a 100644
> > --- a/drivers/iio/light/apds9960.c
> > +++ b/drivers/iio/light/apds9960.c
> > @@ -8,6 +8,7 @@
> >   * TODO: gesture + proximity calib offsets
> >   */
> >
> > +#include <linux/acpi.h>
> >  #include <linux/module.h>
> >  #include <linux/init.h>
> >  #include <linux/interrupt.h>
> > @@ -1113,6 +1114,12 @@ static const struct i2c_device_id apds9960_id[] = {
> >  };
> >  MODULE_DEVICE_TABLE(i2c, apds9960_id);
> >
> > +static const struct acpi_device_id apds9960_acpi_match[] = {
> > +       { "MSHW0184" },
> > +       { }
> > +};
> > +MODULE_DEVICE_TABLE(acpi, apds9960_acpi_match);
> > +
> >  static const struct of_device_id apds9960_of_match[] = {
> >         { .compatible = "avago,apds9960" },
> >         { }
> > @@ -1124,6 +1131,7 @@ static struct i2c_driver apds9960_driver = {
> >                 .name   = APDS9960_DRV_NAME,
> >                 .of_match_table = apds9960_of_match,
> >                 .pm     = &apds9960_pm_ops,
> > +               .acpi_match_table = apds9960_acpi_match,
> >         },
> >         .probe          = apds9960_probe,
> >         .remove         = apds9960_remove,
> > --
> > 2.29.2
> >  


      reply	other threads:[~2020-12-21 14:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-20  1:50 [PATCH] iio:light:apds9960 add detection for MSHW0184 ACPI device in apds9960 driver Max Leiter
2020-12-20 22:05 ` Matt Ranostay
2020-12-21 14:42   ` Jonathan Cameron [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=20201221144255.5657887f@archlinux \
    --to=jic23@kernel.org \
    --cc=alexandru.ardelean@analog.com \
    --cc=blaz@mxxn.io \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matt.ranostay@konsulko.com \
    --cc=maxwell.leiter@gmail.com \
    --cc=pmeerw@pmeerw.net \
    /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