diff options
author | Cosmin Tanislav <[email protected]> | 2024-02-07 15:20:05 +0200 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2024-02-10 16:52:39 +0000 |
commit | a22b0a2be69a36511cb5b37d948b651ddf7debf3 (patch) | |
tree | 50bfd3c5ed05723c9184b9014dec1610e2e268c3 | |
parent | 4cb81840d8f29b66d9d05c6d7f360c9560f7e2f4 (diff) |
iio: adc: ad4130: zero-initialize clock init data
The clk_init_data struct does not have all its members
initialized, causing issues when trying to expose the internal
clock on the CLK pin.
Fix this by zero-initializing the clk_init_data struct.
Fixes: 62094060cf3a ("iio: adc: ad4130: add AD4130 driver")
Signed-off-by: Cosmin Tanislav <[email protected]>
Reviewed-by: Nuno Sa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
-rw-r--r-- | drivers/iio/adc/ad4130.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/ad4130.c b/drivers/iio/adc/ad4130.c index feb86fe6c422..9daeac16499b 100644 --- a/drivers/iio/adc/ad4130.c +++ b/drivers/iio/adc/ad4130.c @@ -1821,7 +1821,7 @@ static int ad4130_setup_int_clk(struct ad4130_state *st) { struct device *dev = &st->spi->dev; struct device_node *of_node = dev_of_node(dev); - struct clk_init_data init; + struct clk_init_data init = {}; const char *clk_name; int ret; |