drivers: can: Make zcan_frame const for sending

For sending the zcan_frame can be const, because its only
copied to the registers.

Signed-off-by: Alexander Wachter <alexander.wachter@student.tugraz.at>
This commit is contained in:
Alexander Wachter 2019-02-28 10:54:10 +01:00 committed by Kumar Gala
commit b0826442ee
2 changed files with 7 additions and 6 deletions

View file

@ -319,8 +319,8 @@ static int can_stm32_init(struct device *dev)
return 0;
}
int can_stm32_send(struct device *dev, struct zcan_frame *msg, s32_t timeout,
can_tx_callback_t callback)
int can_stm32_send(struct device *dev, const struct zcan_frame *msg,
s32_t timeout, can_tx_callback_t callback)
{
const struct can_stm32_config *cfg = DEV_CFG(dev);
struct can_stm32_data *data = DEV_DATA(dev);