staging:iio:ad7280a: Reflect optionality of irq in ABI
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 6 Feb 2022 19:03:20 +0000 (19:03 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 21 Feb 2022 19:33:05 +0000 (19:33 +0000)
commit9010ac1c7115e1edd69d955ba50098cb3341c84d
tree1cb79468c7d80fb02e086eb670ca2647a76a3d26
parent65ba4ab6f018c08262af98e9e83c1ebbe5c7627c
staging:iio:ad7280a: Reflect optionality of irq in ABI

Given the irq is optional, let us remove the interfaces related to
events when it is not present.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
Link: https://lore.kernel.org/r/20220206190328.333093-13-jic23@kernel.org
drivers/staging/iio/adc/ad7280a.c