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,7 +856,7 @@ static inline int can_set_bitrate(const struct device *dev,
* @retval 0 If successful. * @retval 0 If successful.
* @retval -EIO General input / output error, failed to configure device. * @retval -EIO General input / output error, failed to configure device.
*/ */
static inline int can_configure(const struct device *dev, enum can_mode mode, __deprecated static inline int can_configure(const struct device *dev, enum can_mode mode,
uint32_t bitrate) uint32_t bitrate)
{ {
if (bitrate > 0) { if (bitrate > 0) {