Skip to content

Commit 424988b

Browse files
henrikbrixandersenkartben
authored andcommitted
drivers: can: remove deprecated min/max bitrate functions
Remove the deprecated can_get_min_bitrate() (replaced by can_get_bitrate_min()) and can_get_max_bitrate() (replaced by can_get_bitrate_max()) CAN API functions. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent f3772eb commit 424988b

File tree

1 file changed

+0
-58
lines changed
  • include/zephyr/drivers

1 file changed

+0
-58
lines changed

include/zephyr/drivers/can.h

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -846,35 +846,6 @@ static inline uint32_t z_impl_can_get_bitrate_min(const struct device *dev)
846846
return common->min_bitrate;
847847
}
848848

849-
/**
850-
* @brief Get minimum supported bitrate
851-
*
852-
* Get the minimum supported bitrate for the CAN controller/transceiver combination.
853-
*
854-
* @deprecated Use @a can_get_bitrate_min() instead.
855-
*
856-
* @note The minimum bitrate represents limitations of the CAN controller/transceiver
857-
* combination. Whether the CAN controller can achieve this bitrate depends on the CAN core clock
858-
* rate and the minimum CAN timing limits.
859-
*
860-
* @see can_get_core_clock()
861-
* @see can_get_timing_min()
862-
* @see can_get_timing_data_min()
863-
*
864-
* @param dev Pointer to the device structure for the driver instance.
865-
* @param[out] min_bitrate Minimum supported bitrate in bits/s. A value of 0 means the lower limit
866-
* is unspecified.
867-
*
868-
* @retval -EIO General input/output error.
869-
* @retval -ENOSYS If this function is not implemented by the driver.
870-
*/
871-
__deprecated static inline int can_get_min_bitrate(const struct device *dev, uint32_t *min_bitrate)
872-
{
873-
*min_bitrate = can_get_bitrate_min(dev);
874-
875-
return 0;
876-
}
877-
878849
/**
879850
* @brief Get maximum supported bitrate
880851
*
@@ -900,35 +871,6 @@ static inline uint32_t z_impl_can_get_bitrate_max(const struct device *dev)
900871
return common->max_bitrate;
901872
}
902873

903-
/**
904-
* @brief Get maximum supported bitrate
905-
*
906-
* Get the maximum supported bitrate for the CAN controller/transceiver combination.
907-
*
908-
* @deprecated Use @a can_get_bitrate_max() instead.
909-
*
910-
* @note The maximum bitrate represents limitations of the CAN controller/transceiver
911-
* combination. Whether the CAN controller can achieve this bitrate depends on the CAN core clock
912-
* rate and the maximum CAN timing limits.
913-
*
914-
* @see can_get_core_clock()
915-
* @see can_get_timing_max()
916-
* @see can_get_timing_data_max()
917-
*
918-
* @param dev Pointer to the device structure for the driver instance.
919-
* @param[out] max_bitrate Maximum supported bitrate in bits/s
920-
*
921-
* @retval 0 If successful.
922-
* @retval -EIO General input/output error.
923-
* @retval -ENOSYS If this function is not implemented by the driver.
924-
*/
925-
__deprecated static inline int can_get_max_bitrate(const struct device *dev, uint32_t *max_bitrate)
926-
{
927-
*max_bitrate = can_get_bitrate_max(dev);
928-
929-
return 0;
930-
}
931-
932874
/**
933875
* @brief Get the minimum supported timing parameter values.
934876
*

0 commit comments

Comments
 (0)