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

iio: adc: mxs-lradc-adc: don't set masklength

The masklength field is marked as [INTERN] and should not be set by
drivers, so remove the assignment in the mxs-lradc-adc driver.

__iio_device_register() will populate this field with the correct value.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://lore.kernel.org/r/20240425-b4-iio-masklength-cleanup-v1-2-d3d16318274d@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

David Lechner and committed by
Jonathan Cameron
75616d2e ef64a4ad

-1
-1
drivers/iio/adc/mxs-lradc-adc.c
··· 724 724 iio->dev.of_node = dev->parent->of_node; 725 725 iio->info = &mxs_lradc_adc_iio_info; 726 726 iio->modes = INDIO_DIRECT_MODE; 727 - iio->masklength = LRADC_MAX_TOTAL_CHANS; 728 727 729 728 if (lradc->soc == IMX23_LRADC) { 730 729 iio->channels = mx23_lradc_chan_spec;