Skip to content
Commit 1910cd88 authored by Christer Beskow's avatar Christer Beskow Committed by Marc Kleine-Budde
Browse files

can: kvaser_pciefd: kvaser_pciefd_pwm_stop(): remove unnecessary code when...


can: kvaser_pciefd: kvaser_pciefd_pwm_stop(): remove unnecessary code when setting pwm duty cycle to zero

To set the duty cycle to zero (i.e. pwm_stop), the trigger value shall
be equal to the top value.

This is achieved by reading the value of the top bit field from the pwm
register and then writing back this value to the trigger and top bit
fields.

Addresses-Coverity: ("Logically dead code")
Reported-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarChrister Beskow <chbe@kvaser.com>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 53f6f391
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment