[PATCH 05/28] iio: adc: rockchip_saradc: use = { } instead of memset()

David Lechner
2025-06-11T23:26:52Z

drivers/iio/adc/rockchip_saradc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/iio/adc/rockchip_saradc.c b/drivers/iio/adc/rockchip_saradc.c
index 325e3747a1345c84cddcfe9a455da6ccf655447b..bd62daea0a3e5b879a8a970d107e3342fda7b8c0 100644
--- a/drivers/iio/adc/rockchip_saradc.c
+++ b/drivers/iio/adc/rockchip_saradc.c
@@ -404,12 +404,10 @@ static irqreturn_t rockchip_saradc_trigger_handler(int irq, void *p)
struct {
u16 values[SARADC_MAX_CHANNELS];
aligned_s64 timestamp;
- } data;
+ } data = { };
int ret;
int i, j = 0;

- memset(&data, 0, sizeof(data));
-
mutex_lock(&info->lock);

iio_for_each_active_channel(i_dev, i) {

--
2.43.0