From: sashiko-bot@kernel.org
To: "Romain Gantois" <romain.gantois@bootlin.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 2/2] iio: temperature: tmp117: add TI TMP119 support
Date: Fri, 05 Jun 2026 11:08:02 +0000 [thread overview]
Message-ID: <20260605110802.74B701F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260605-tmp119-v1-2-349f45f17d12@bootlin.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The IIO device name for the TMP119 sensor is incorrectly reported as 'tmp117' to userspace.
--
commit 3bc7597d636b9eb1df1b77ad9bb9ab2ab8c85398
Author: Wil Stark <wil_stark@keysight.com>
iio: temperature: tmp117: add TI TMP119 support
This commit adds support for the TMP119 temperature sensor to the tmp117
driver. It maps the TMP119 device ID and compatible string to the existing
tmp117 match data.
> diff --git a/drivers/iio/temperature/tmp117.c b/drivers/iio/temperature/tmp117.c
> index 8972083d903a2..8e9621171c516 100644
> --- a/drivers/iio/temperature/tmp117.c
> +++ b/drivers/iio/temperature/tmp117.c
[ ... ]
> @@ -170,6 +171,7 @@ static int tmp117_probe(struct i2c_client *client)
> match_data = &tmp116_channels_info;
> break;
> case TMP117_DEVICE_ID:
> + case TMP119_DEVICE_ID:
> match_data = &tmp117_channels_info;
> break;
[Severity: Medium]
Will this cause the IIO device name exposed to userspace to be incorrectly
reported as "tmp117" for TMP119 devices?
Since TMP119 maps directly to tmp117_channels_info:
static const struct tmp11x_info tmp117_channels_info = {
.name = "tmp117",
...
};
And indio_dev->name is assigned from match_data->name later in tmp117_probe():
indio_dev->name = match_data->name;
Does this break userspace applications or udev rules that rely on reading
the correct sensor part name ("tmp119") from sysfs?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260605-tmp119-v1-0-349f45f17d12@bootlin.com?part=2
next prev parent reply other threads:[~2026-06-05 11:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-05 9:01 [PATCH 0/2] iio: temperature: tmp117: Support the TMP119 sensor Romain Gantois
2026-06-05 9:01 ` [PATCH 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119 Romain Gantois
2026-06-05 11:53 ` Jonathan Cameron
2026-06-05 12:24 ` Romain Gantois
2026-06-05 14:20 ` Jonathan Cameron
2026-06-05 16:08 ` Conor Dooley
2026-06-05 9:01 ` [PATCH 2/2] iio: temperature: tmp117: add TI TMP119 support Romain Gantois
2026-06-05 11:08 ` sashiko-bot [this message]
2026-06-05 11:38 ` Romain Gantois
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=20260605110802.74B701F00893@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=romain.gantois@bootlin.com \
--cc=sashiko-reviews@lists.linux.dev \
/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