Skip to content

Commit

Permalink
zephyr: drivers: can: Rename bus_speed to bitrate
Browse files Browse the repository at this point in the history
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 <yashi@spacecubics.com>
  • Loading branch information
yashi authored and sasataku committed Aug 16, 2024
1 parent 6575386 commit ad96a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zephyr/drivers/can/can_sccan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ad96a12

Please sign in to comment.