]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: Enable multiple consecutive channels based on model data
authorBilly Tsai <billy_tsai@aspeedtech.com>
Fri, 20 Mar 2026 05:46:36 +0000 (13:46 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Mar 2026 15:48:53 +0000 (15:48 +0000)
commit9ee1c3be164de16bab382197202ddef8ae020433
treefec83a55134276ac2c558c54c1c316cda8a541a5
parenta28069be7d34597159840c4a0dfd3886787455db
iio: adc: Enable multiple consecutive channels based on model data

Add helpers to generate channel masks and enable multiple ADC channels
according to the device model's channel count.

Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/aspeed_adc.c