drivers: can: sja1000: use generic can_set_timing API

This is a preparation to use the custom implementation in ESP32 TWAI
frontend for newer ESP32 series chips like the ESP32-C3, which have
timing registers incompatible with the SJA1000.

Signed-off-by: Martin Jäger <martin@libre.solar>
This commit is contained in:
Martin Jäger 2022-10-06 13:36:51 +02:00 committed by Carles Cufí
commit f936d68916

View file

@ -729,7 +729,7 @@ int can_sja1000_init(const struct device *dev)
}
/* Configure timing */
err = can_sja1000_set_timing(dev, &timing);
err = can_set_timing(dev, &timing);
if (err != 0) {
LOG_ERR("timing parameters cannot be met (err %d)", err);
return err;