Re: [PATCH v1 04/13] iio: adc: max1241: Simplify device abstraction

From: Jonathan Cameron

Date: Wed Jun 24 2026 - 13:41:02 EST


On Fri, 19 Jun 2026 17:54:32 +0200
Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx> wrote:

> The driver was introduced in 2020 and since then only supports a single
> chip variant and .driver_data was unused from the start.
>
> Drop the assignment for .driver_data and hardcode the device name
> instead of doing a lookup in a table with only one entry. While touching
> that array, make use of a named initializer.
>
> Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>
Applied this one.

Thanks,

Jonathan