[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJCx=gmPB_nqNt-OQXTEiKKaPh6sw1y6deUON3-t=QUJOQ3nNg@mail.gmail.com>
Date: Fri, 24 Dec 2021 12:37:59 -0800
From: Matt Ranostay <matt.ranostay@...sulko.com>
To: Kai-Heng Feng <kai.heng.feng@...onical.com>
Cc: Jonathan Cameron <jic23@...nel.org>,
Lars-Peter Clausen <lars@...afoo.de>,
Chris Lesiak <chris.lesiak@...or.com>,
"open list:IIO SUBSYSTEM AND DRIVERS" <linux-iio@...r.kernel.org>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] iio: humidity: hdc100x: Add ACPI HID table
On Fri, Dec 24, 2021 at 6:59 AM Kai-Heng Feng
<kai.heng.feng@...onical.com> wrote:
>
> x86 boards may use ACPI HID "HDC1010" to for hdc100x device.
>
> So add an ACPI match table for that accordingly.
>
Acked-by: Matt Ranostay <matt.ranostay@...sulko.com>
> Signed-off-by: Kai-Heng Feng <kai.heng.feng@...onical.com>
> ---
> drivers/iio/humidity/hdc100x.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/drivers/iio/humidity/hdc100x.c b/drivers/iio/humidity/hdc100x.c
> index 9e0fce917ce4c..ad1dfac543c52 100644
> --- a/drivers/iio/humidity/hdc100x.c
> +++ b/drivers/iio/humidity/hdc100x.c
> @@ -417,10 +417,18 @@ static const struct of_device_id hdc100x_dt_ids[] = {
> };
> MODULE_DEVICE_TABLE(of, hdc100x_dt_ids);
>
> +static const struct acpi_device_id hdc100x_acpi_match[] = {
> + {"HDC1010"},
> + { },
> +};
> +
> +MODULE_DEVICE_TABLE(acpi, hdc100x_acpi_match);
> +
> static struct i2c_driver hdc100x_driver = {
> .driver = {
> .name = "hdc100x",
> .of_match_table = hdc100x_dt_ids,
> + .acpi_match_table = ACPI_PTR(hdc100x_acpi_match),
> },
> .probe = hdc100x_probe,
> .id_table = hdc100x_id,
> --
> 2.33.1
>
Powered by blists - more mailing lists