Searched hist:"1910 cd88539c07abf34a558a0976b506483c377c" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/can/ |
H A D | kvaser_pciefd.c | diff 1910cd88539c07abf34a558a0976b506483c377c Tue Aug 06 02:29:38 CDT 2019 Christer Beskow <chbe@kvaser.com> 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: Colin Ian King <colin.king@canonical.com> Signed-off-by: Christer Beskow <chbe@kvaser.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|