From: Jonathan Cameron <jic23@kernel.org>
To: "Uwe Kleine-König (The Capable Hub)" <u.kleine-koenig@baylibre.com>
Cc: "David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 4/7] iio: dac: max5821: Drop unused i2c driver data
Date: Tue, 19 May 2026 20:06:08 +0100 [thread overview]
Message-ID: <20260519200608.4ffb0d2a@jic23-huawei> (raw)
In-Reply-To: <5feaecf87460a13d389f7b524a12f908e410143e.1779136001.git.u.kleine-koenig@baylibre.com>
On Tue, 19 May 2026 10:13:06 +0200
Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> wrote:
> The .driver_data member of the single i2c_device_id array entry is
> unused in the driver. Drop it and also the then unused definition.
>
> While at it, convert the i2c_device_id array to a better readable named
> initializer.
>
> Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Applied.
> ---
> drivers/iio/dac/max5821.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/drivers/iio/dac/max5821.c b/drivers/iio/dac/max5821.c
> index e7e29359f8fe..f3ebbdff5487 100644
> --- a/drivers/iio/dac/max5821.c
> +++ b/drivers/iio/dac/max5821.c
> @@ -26,10 +26,6 @@
> #define MAX5821_EXTENDED_DAC_A 0x04
> #define MAX5821_EXTENDED_DAC_B 0x08
>
> -enum max5821_device_ids {
> - ID_MAX5821,
> -};
> -
> struct max5821_data {
> struct i2c_client *client;
> unsigned short vref_mv;
> @@ -332,7 +328,7 @@ static int max5821_probe(struct i2c_client *client)
> }
>
> static const struct i2c_device_id max5821_id[] = {
> - { "max5821", ID_MAX5821 },
> + { .name = "max5821" },
> { }
> };
> MODULE_DEVICE_TABLE(i2c, max5821_id);
next prev parent reply other threads:[~2026-05-19 19:06 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-19 8:13 [PATCH v2 0/7] iio: Rework i2c_device_id initialisation Uwe Kleine-König (The Capable Hub)
2026-05-19 8:13 ` [PATCH v2 1/7] iio: Drop unused driver_data in four i2c drivers Uwe Kleine-König (The Capable Hub)
2026-05-19 8:13 ` [PATCH v2 2/7] iio: accel: bmc150: Explicitly set .driver_data Uwe Kleine-König (The Capable Hub)
2026-05-19 18:42 ` Jonathan Cameron
2026-05-19 8:13 ` [PATCH v2 3/7] iio: adc: ad7091r5: Simplify driver_data handling Uwe Kleine-König (The Capable Hub)
2026-05-19 18:49 ` Jonathan Cameron
2026-05-21 17:15 ` Marcelo Schmitt
2026-05-22 11:59 ` Jonathan Cameron
2026-05-19 8:13 ` [PATCH v2 4/7] iio: dac: max5821: Drop unused i2c driver data Uwe Kleine-König (The Capable Hub)
2026-05-19 19:06 ` Jonathan Cameron [this message]
2026-05-19 8:13 ` [PATCH v2 5/7] iio: proximity: sx9324: Drop unused " Uwe Kleine-König (The Capable Hub)
2026-05-19 19:08 ` Jonathan Cameron
2026-05-19 8:13 ` [PATCH v2 6/7] iio: proximity: sx9360: " Uwe Kleine-König (The Capable Hub)
2026-05-19 19:09 ` Jonathan Cameron
2026-05-19 8:13 ` [PATCH v2 7/7] iio: Initialize i2c_device_id arrays using member names Uwe Kleine-König (The Capable Hub)
2026-05-19 11:35 ` Matti Vaittinen
2026-05-19 15:46 ` Sirat
2026-05-19 18:39 ` Jonathan Cameron
2026-05-19 19:51 ` Uwe Kleine-König (The Capable Hub)
2026-05-21 12:04 ` Jonathan Cameron
2026-05-21 13:20 ` Uwe Kleine-König (The Capable Hub)
2026-05-22 11:10 ` Jonathan Cameron
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=20260519200608.4ffb0d2a@jic23-huawei \
--to=jic23@kernel.org \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=u.kleine-koenig@baylibre.com \
/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®