]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: adc: ad7124: inline ad7124_enable_channel()
authorDavid Lechner <dlechner@baylibre.com>
Wed, 17 Sep 2025 20:39:22 +0000 (15:39 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 13 Oct 2025 07:37:22 +0000 (08:37 +0100)
commit0b02af932b7e7777074d78203e8e336a9dc30400
tree1b94c3e81b9c215cddb1175717eb265f19638555
parent5f31df5075a7f8967401ded5d54be04f62b172a2
iio: adc: ad7124: inline ad7124_enable_channel()

Inline ad7124_enable_channel() at the only call site. This simplifies
the code by avoiding a bit of extra indirection.

ch->nr is replaced by address as that is the same value and avoids more
indirection.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7124.c