aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/xilinx-xadc.h
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2021-10-17 14:15:51 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-10-20 14:43:53 +0100
commitdd4efd05c565529dad8722301d69e0c19a3292e9 (patch)
tree1982aa090b5d607233fa5e60b198870a3b168734 /drivers/iio/adc/xilinx-xadc.h
parentiio: imu: st_lsm6dsx: Avoid potential array overflow in st_lsm6dsx_set_odr() (diff)
downloadlinux-dev-dd4efd05c565529dad8722301d69e0c19a3292e9.tar.xz
linux-dev-dd4efd05c565529dad8722301d69e0c19a3292e9.zip
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>
Diffstat (limited to '')
-rw-r--r--drivers/iio/adc/xilinx-xadc.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iio/adc/xilinx-xadc.h b/drivers/iio/adc/xilinx-xadc.h
index 8b80195725e9..7d78ce698967 100644
--- a/drivers/iio/adc/xilinx-xadc.h
+++ b/drivers/iio/adc/xilinx-xadc.h
@@ -67,7 +67,6 @@ struct xadc {
spinlock_t lock;
struct completion completion;
- int irq;
};
enum xadc_type {