drivers: can: rename can_state enumerations
Rename the can_state enumerations to contain the word STATE to make their meaning more clear: - CAN_ERROR_ACTIVE => CAN_STATE_ERROR_ACTIVE - CAN_ERROR_WARNING => CAN_STATE_ERROR_WARNING - CAN_ERROR_PASSIVE => CAN_STATE_ERROR_PASSIVE - CAN_BUS_OFF => CAN_STATE_BUS_OFF Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
aa7533380c
commit
590cd5cb72
11 changed files with 51 additions and 51 deletions
|
@ -433,7 +433,7 @@ void CO_CANverifyErrors(CO_CANmodule_t *CANmodule)
|
|||
if (errors != CANmodule->errors) {
|
||||
CANmodule->errors = errors;
|
||||
|
||||
if (state == CAN_BUS_OFF) {
|
||||
if (state == CAN_STATE_BUS_OFF) {
|
||||
/* Bus off */
|
||||
CO_errorReport(em, CO_EM_CAN_TX_BUS_OFF,
|
||||
CO_EMC_BUS_OFF_RECOVERED, errors);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue