]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
iio: adc: adi-axi-adc: add axi_adc_num_lanes_set
authorIoana Risteiu <Ioana.Risteiu@analog.com>
Mon, 25 Aug 2025 22:13:49 +0000 (01:13 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 31 Aug 2025 12:36:25 +0000 (13:36 +0100)
Assign num_lanes_set in the adi_axi_adc_ops to axi_adc_num_lanes_set()
to support setting number of lanes used by AXI ADC. This operation is
included in the generic structure because the number of lanes is a
configurable parameter of the generic AXI ADC IP core, not specific to
a device.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Ioana Risteiu <Ioana.Risteiu@analog.com>
Link: https://patch.msgid.link/20250825221355.6214-2-Ioana.Risteiu@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/adi-axi-adc.c

index eb42e29960e430d39f4686945292d944b75cf3f4..14fa4238c2b96b1ac722d537bc49ed4ca8e36925 100644 (file)
@@ -618,6 +618,7 @@ static const struct iio_backend_ops adi_axi_adc_ops = {
        .chan_status = axi_adc_chan_status,
        .interface_type_get = axi_adc_interface_type_get,
        .oversampling_ratio_set = axi_adc_oversampling_ratio_set,
+       .num_lanes_set = axi_adc_num_lanes_set,
        .debugfs_reg_access = iio_backend_debugfs_ptr(axi_adc_reg_access),
        .debugfs_print_chan_status = iio_backend_debugfs_ptr(axi_adc_debugfs_print_chan_status),
 };