]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: ad7091r5: Simplify driver_data handling
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Tue, 19 May 2026 08:13:05 +0000 (10:13 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 10:01:46 +0000 (11:01 +0100)
commitabd69c09a73bb9a74f899526b4c7a60169dcbb27
treeee29ddce059fbd0f2a49b893094097e7d12a600c
parente50856dc41e8353237863d618a55d7496072c325
iio: adc: ad7091r5: Simplify driver_data handling

The driver only supports a single device type. So the return value of
i2c_get_match_data() is already known and can just be hardcoded without
type casting. While at it also remove the unused .data of the
single of_device_id entry.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Reviewed-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ad7091r5.c