Skip to content

Commit 2962638

Browse files
ukleineknunojsa
authored andcommitted
iio: adc: ad7944: Drop pwm time unit specification
Having the pwm configuration specified in nano seconds is the default and upstream behaviour and there is ongoing work to remove other time units. So just drop the explicit specification of the default to allow removing the .time_unit member from struct pwm_state. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
1 parent 9de7bc2 commit 2962638

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/iio/adc/ad7944.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,6 @@ static int ad7944_probe(struct spi_device *spi)
735735
.period = NSEC_PER_SEC / AD7944_DEFAULT_SAMPLE_FREQ_HZ,
736736
.duty_cycle = AD7944_PWM_TRIGGER_DUTY_CYCLE_NS,
737737
.enabled = true,
738-
.time_unit = PWM_UNIT_NSEC,
739738
};
740739

741740
adc->pwm = devm_pwm_get(dev, NULL);

0 commit comments

Comments
 (0)