From ad96a126a400d5fc5dd7abb08023a6ff2aa49159 Mon Sep 17 00:00:00 2001 From: Yasushi SHOJI Date: Fri, 16 Aug 2024 15:43:00 +0900 Subject: [PATCH] zephyr: drivers: can: Rename bus_speed to bitrate This change was introduced in zephyrproject-rtos/zephyr@68096cedaec816f7bfa46. Here is the original commit message: drivers: can: rename struct can_driver_config fields Rename the "bus_speed" and "bus_speed_data" fields of struct can_driver_config to "bitrate" and "bitrate_data" to match the corresponding devicetree properties and the terminology used in the rest of the CAN subsystem API. Signed-off-by: Yasushi SHOJI --- zephyr/drivers/can/can_sccan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zephyr/drivers/can/can_sccan.c b/zephyr/drivers/can/can_sccan.c index 9d075042..31a5ad8d 100644 --- a/zephyr/drivers/can/can_sccan.c +++ b/zephyr/drivers/can/can_sccan.c @@ -1050,7 +1050,7 @@ static int sc_can_init(const struct device *dev) uint32_t v; /* Set timing according to dts default setting */ - ret = can_calc_timing(dev, &timing, config->common.bus_speed, config->common.sample_point); + ret = can_calc_timing(dev, &timing, config->common.bitrate, config->common.sample_point); if (ret == -EINVAL) { LOG_ERR("Can't find timing for given param"); return -EIO;