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 <hebad@vestas.com>
This commit is contained in:
parent
53f85df551
commit
2cc3fab62f
1 changed files with 2 additions and 2 deletions
|
@ -856,8 +856,8 @@ static inline int can_set_bitrate(const struct device *dev,
|
|||
* @retval 0 If successful.
|
||||
* @retval -EIO General input / output error, failed to configure device.
|
||||
*/
|
||||
static inline int can_configure(const struct device *dev, enum can_mode mode,
|
||||
uint32_t bitrate)
|
||||
__deprecated static inline int can_configure(const struct device *dev, enum can_mode mode,
|
||||
uint32_t bitrate)
|
||||
{
|
||||
if (bitrate > 0) {
|
||||
int err = can_set_bitrate(dev, bitrate, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue