Skip to content

Commit 521a57f

Browse files
ukleineknunojsa
authored andcommitted
iio: adc: ad4630: Make sure the PWMs are actually enabled
Without .enabled = true you won't get a toggling PWM for most lowlevel drivers. Not a big issue though as the axi_pwmgen driver ignores .enabled and assumes it to be true. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
1 parent 9394110 commit 521a57f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/iio/adc/ad4630.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,11 @@ static int __ad4630_set_sampling_freq(const struct ad4630_state *st, unsigned in
377377
struct pwm_state conv_state = {
378378
.duty_cycle = 10000,
379379
.time_unit = PWM_UNIT_PSEC,
380+
.enabled = true,
380381
}, fetch_state = {
381382
.duty_cycle = 10000,
382383
.time_unit = PWM_UNIT_PSEC,
384+
.enabled = true,
383385
};
384386
int ret;
385387

0 commit comments

Comments
 (0)