]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: dac: ad5686: create bus ops struct
authorRodrigo Alencar <rodrigo.alencar@analog.com>
Sun, 24 May 2026 10:17:08 +0000 (11:17 +0100)
committerJonathan Cameron <jic23@kernel.org>
Tue, 2 Jun 2026 14:24:48 +0000 (15:24 +0100)
commitae8360f3715aa61714864fc81f39790cbb883d40
tree5d8efd1b37f0a5309fcff07b853c6c254d83ae20
parent883a752cc4c6420a2a6ce9cf572564963d4bcadc
iio: dac: ad5686: create bus ops struct

Create struct with bus operations, which will be used to extend bus
implementation features. Auxiliary functions ad5686_write() and
ad5686_read() are created and ad5686_probe() now receives an ops struct
pointer rather than individual read and write functions.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/dac/ad5686-spi.c
drivers/iio/dac/ad5686.c
drivers/iio/dac/ad5686.h
drivers/iio/dac/ad5696-i2c.c