Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: backend: remove unused parameter

Indio_dev was not being used in iio_backend_extend_chan_spec() so remove
it.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240709-dev-iio-backend-add-debugfs-v1-1-fb4b8f2373c7@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Nuno Sa and committed by
Jonathan Cameron
8585632a 3e82dfc8

+3 -7
+1 -2
drivers/iio/dac/ad9739a.c
··· 413 413 if (ret) 414 414 return ret; 415 415 416 - ret = iio_backend_extend_chan_spec(indio_dev, st->back, 417 - &ad9739a_channels[0]); 416 + ret = iio_backend_extend_chan_spec(st->back, &ad9739a_channels[0]); 418 417 if (ret) 419 418 return ret; 420 419
+1 -3
drivers/iio/industrialio-backend.c
··· 451 451 452 452 /** 453 453 * iio_backend_extend_chan_spec - Extend an IIO channel 454 - * @indio_dev: IIO device 455 454 * @back: Backend device 456 455 * @chan: IIO channel 457 456 * ··· 460 461 * RETURNS: 461 462 * 0 on success, negative error number on failure. 462 463 */ 463 - int iio_backend_extend_chan_spec(struct iio_dev *indio_dev, 464 - struct iio_backend *back, 464 + int iio_backend_extend_chan_spec(struct iio_backend *back, 465 465 struct iio_chan_spec *chan) 466 466 { 467 467 const struct iio_chan_spec_ext_info *frontend_ext_info = chan->ext_info;
+1 -2
include/linux/iio/backend.h
··· 142 142 ssize_t iio_backend_ext_info_get(struct iio_dev *indio_dev, uintptr_t private, 143 143 const struct iio_chan_spec *chan, char *buf); 144 144 145 - int iio_backend_extend_chan_spec(struct iio_dev *indio_dev, 146 - struct iio_backend *back, 145 + int iio_backend_extend_chan_spec(struct iio_backend *back, 147 146 struct iio_chan_spec *chan); 148 147 void *iio_backend_get_priv(const struct iio_backend *conv); 149 148 struct iio_backend *devm_iio_backend_get(struct device *dev, const char *name);