Linux IIO development
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Kai-Heng Feng <kai.heng.feng@canonical.com>
Cc: eajames@linux.ibm.com, andy.shevchenko@gmail.com,
	Lars-Peter Clausen <lars@metafoo.de>,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3] iio: dps310: Add ACPI HID table
Date: Sun, 30 Jan 2022 12:55:51 +0000	[thread overview]
Message-ID: <20220130125551.7fc9bcd7@jic23-huawei> (raw)
In-Reply-To: <20220128023144.2050615-1-kai.heng.feng@canonical.com>

On Fri, 28 Jan 2022 10:31:44 +0800
Kai-Heng Feng <kai.heng.feng@canonical.com> wrote:

> x86 boards may use ACPI HID "IFX3100" for the dps310 device.
> 
> Vendor told us feel free to add the ID and contact
> "Saumitra.Chafekar@infineon.com" for further questions.
> 
> So add an ACPI match table for that accordingly.
> 
> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
> Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>

Applied to the togreg branch of iio.git and pushed out as testing
on the off chance 0-day finds something we missed.

Thanks,

Jonathan

> ---
> v3:
>  - Drop redundant line and comma.
>  - Wording change.
> 
> v2:
>  - Drop ACPI_PTR().
>  - Add info from vendor.
> 
>  drivers/iio/pressure/dps310.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/drivers/iio/pressure/dps310.c b/drivers/iio/pressure/dps310.c
> index 0730380ceb692..36fb7ae0d0a9d 100644
> --- a/drivers/iio/pressure/dps310.c
> +++ b/drivers/iio/pressure/dps310.c
> @@ -812,9 +812,16 @@ static const struct i2c_device_id dps310_id[] = {
>  };
>  MODULE_DEVICE_TABLE(i2c, dps310_id);
>  
> +static const struct acpi_device_id dps310_acpi_match[] = {
> +	{ "IFX3100" },
> +	{}
> +};
> +MODULE_DEVICE_TABLE(acpi, dps310_acpi_match);
> +
>  static struct i2c_driver dps310_driver = {
>  	.driver = {
>  		.name = DPS310_DEV_NAME,
> +		.acpi_match_table = dps310_acpi_match,
>  	},
>  	.probe = dps310_probe,
>  	.id_table = dps310_id,


      reply	other threads:[~2022-01-30 12:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-28  2:31 [PATCH v3] iio: dps310: Add ACPI HID table Kai-Heng Feng
2022-01-30 12:55 ` 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=20220130125551.7fc9bcd7@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=andy.shevchenko@gmail.com \
    --cc=eajames@linux.ibm.com \
    --cc=kai.heng.feng@canonical.com \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /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