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:
Henrik Brix Andersen 2021-12-01 17:52:32 +01:00 committed by Carles Cufí
commit 2cc3fab62f

View file

@ -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);