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:
parent
8aab2e7bb9
commit
b0826442ee
2 changed files with 7 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue