From: Jonathan Cameron <jic23@kernel.org>
To: Marius Hoch <mail@mariushoch.de>
Cc: Lars-Peter Clausen <lars@metafoo.de>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
Hans de Goede <hdegoede@redhat.com>
Subject: Re: [PATCH] iio: light: al3320a: Handle ACPI device CALS0001
Date: Sun, 23 Apr 2023 12:07:44 +0100 [thread overview]
Message-ID: <20230423120744.568f107d@jic23-huawei> (raw)
In-Reply-To: <20230420182314.53796-1-mail@mariushoch.de>
On Thu, 20 Apr 2023 20:23:14 +0200
Marius Hoch <mail@mariushoch.de> wrote:
> This sensor can be found as CALS0001 on the Lenovo Yoga
> Tablet 2 series.
>
> Tested on a Lenovo Yoga Tablet 2 1051-F.
>
> Signed-off-by: Marius Hoch <mail@mariushoch.de>
I made a small tweak. This driver includes of.h to get
the ID table, which is less than ideal anyway. Now you've added
a second table, I've switched that for mod_devicetable.h which is
the include that should have been used in the first place.
Applied with that and a not in the patch description to the togreg
branch of iio.git which is initially pushed out as testing for 0-day to
see if it can find anything we missed.
Thanks,
Jonathan
> ---
> drivers/iio/light/al3320a.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/iio/light/al3320a.c b/drivers/iio/light/al3320a.c
> index 9ff28bbf34bb..ffcb65cbc125 100644
> --- a/drivers/iio/light/al3320a.c
> +++ b/drivers/iio/light/al3320a.c
> @@ -247,11 +247,18 @@ static const struct of_device_id al3320a_of_match[] = {
> };
> MODULE_DEVICE_TABLE(of, al3320a_of_match);
>
> +static const struct acpi_device_id al3320a_acpi_match[] = {
> + {"CALS0001"},
> + { },
> +};
> +MODULE_DEVICE_TABLE(acpi, al3320a_acpi_match);
> +
> static struct i2c_driver al3320a_driver = {
> .driver = {
> .name = AL3320A_DRV_NAME,
> .of_match_table = al3320a_of_match,
> .pm = pm_sleep_ptr(&al3320a_pm_ops),
> + .acpi_match_table = al3320a_acpi_match,
> },
> .probe_new = al3320a_probe,
> .id_table = al3320a_id,
>
> base-commit: cb0856346a60fe3eb837ba5e73588a41f81ac05f
prev parent reply other threads:[~2023-04-23 10:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-20 18:23 Marius Hoch
2023-04-23 11:07 ` 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=20230423120744.568f107d@jic23-huawei \
--to=jic23@kernel.org \
--cc=hdegoede@redhat.com \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mail@mariushoch.de \
/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
all inboxes | Powered by JetHome®