]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: amplifiers: ad8366: replace reset-gpio with reset controller
authorRodrigo Alencar <rodrigo.alencar@analog.com>
Mon, 16 Feb 2026 17:10:51 +0000 (17:10 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Feb 2026 21:00:58 +0000 (21:00 +0000)
commitee4f8c56e46abd4bfeab1cee96cd391c0b7a3e4a
tree67d5cf6a09a190e38f06847bf7334f028944a359
parent5fdb9c833293c6c341f58dc8109a6fdd2556a034
iio: amplifiers: ad8366: replace reset-gpio with reset controller

Remove reset_gpio from the device state struct and use the reset_control
interface instead, using a local variable, as it is not being used
anywhere else. The reset controller init is moved out from the switch case
and optionally initialized for every device variant. Although not all
devices have a reset pin the code does not need to change if it is not
wired.

Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/amplifiers/ad8366.c