iio: backend: introduce struct iio_backend_info
authorNuno Sa <nuno.sa@analog.com>
Fri, 2 Aug 2024 14:26:59 +0000 (16:26 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 3 Aug 2024 13:36:45 +0000 (14:36 +0100)
commit2256f37e24b1979f9a97de0b76cabbf8544a8aff
tree040cecd38829fe36ec35e05ae9d975aec671edaf
parent958000dfa36d9bf9191af7cdab1b53ab60095100
iio: backend: introduce struct iio_backend_info

Instead of only passing the backend ops when calling
devm_iio_backend_register(), pass an info like structure that will
contains the ops and additional information. Fow now, the backend name
is being added as that will be used by the debugFS interface introduced
in a later patch.

It also opens the door for further customizations passed by backends.

All users of devm_iio_backend_register() were updated accordingly.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240802-dev-iio-backend-add-debugfs-v2-1-4cb62852f0d0@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/adi-axi-adc.c
drivers/iio/dac/adi-axi-dac.c
drivers/iio/industrialio-backend.c
include/linux/iio/backend.h