Skip to content

Commit 2cc3fab

Browse files
henrikbrixandersencarlescufi
authored andcommitted
drivers: can: deprecate can_configure()
The can_configure() API call does not handle CAN-FD bitrates. Deprecate the can_configure() API wrapper function in favour of the newer can_set_bitrate() and can_set_mode() functions. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent 53f85df commit 2cc3fab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/drivers/can.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -856,8 +856,8 @@ static inline int can_set_bitrate(const struct device *dev,
856856
* @retval 0 If successful.
857857
* @retval -EIO General input / output error, failed to configure device.
858858
*/
859-
static inline int can_configure(const struct device *dev, enum can_mode mode,
860-
uint32_t bitrate)
859+
__deprecated static inline int can_configure(const struct device *dev, enum can_mode mode,
860+
uint32_t bitrate)
861861
{
862862
if (bitrate > 0) {
863863
int err = can_set_bitrate(dev, bitrate, 0);

0 commit comments

Comments
 (0)