Skip to content

Commit 5554625

Browse files
ukleineknunojsa
authored andcommitted
iio: adc: ltc2358: 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 2962638 commit 5554625

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/iio/adc/ltc2358.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ static int __ltc235x_set_sampling_freq(struct ltc235x_state *st,
5959
pwm_get_state(st->cnv_pwm, &cnv_state);
6060
cnv_state.duty_cycle = LTC235X_TCNVH_NS;
6161
cnv_state.period = DIV_ROUND_CLOSEST_ULL(NANO, freq);
62-
cnv_state.time_unit = PWM_UNIT_NSEC;
6362

6463
return pwm_apply_state(st->cnv_pwm, &cnv_state);
6564
}

0 commit comments

Comments
 (0)