iio: xilinx-xadc: Remove `irq` field from state struct
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 17 Oct 2021 12:15:51 +0000 (14:15 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 20 Oct 2021 13:43:53 +0000 (14:43 +0100)
commitdd4efd05c565529dad8722301d69e0c19a3292e9
tree1982aa090b5d607233fa5e60b198870a3b168734
parent94be878c882d8d784ff44c639bf55f3b029f85af
iio: xilinx-xadc: Remove `irq` field from state struct

Since commit 2a9685d1a3b7 ("iio: adc: xilinx: use more devres helpers and
remove remove()") the `irq` field from XADC driver state struct is only
used in the `probe()` function.

Use the local `irq` variable throughout the `probe()` function and remove
the now unused field from the state struct.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Link: https://lore.kernel.org/r/20211017121551.24063-1-lars@metafoo.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/xilinx-xadc-core.c
drivers/iio/adc/xilinx-xadc.h