iio: adc: ad_sigma_delta: allow overwriting the IRQ flags
authorNuno Sa <nuno.sa@analog.com>
Wed, 17 Jan 2024 12:41:04 +0000 (13:41 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 17 Feb 2024 16:16:09 +0000 (16:16 +0000)
commit1ca53b5df113bd008f5fd7ecdf108872f1cf7508
treeabb86571bac3c82a32298be6631a182f39d1f3a3
parent32f28e19ff27a1292351f579f44086dfea82c131
iio: adc: ad_sigma_delta: allow overwriting the IRQ flags

Make sure we can specify the IRQ trigger type from firmware and drivers
won't ignore it. In fact, this how it should be done but since someone
might be already depending on the driver to hardcode the trigger type
(and not specifying it in firmware), let's do it like this so there's
no possible breakage.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240117-dev_sigma_delta_no_irq_flags-v1-2-db39261592cf@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad_sigma_delta.c