#include "m_can.h"
-#define DEVICE_NAME "tcan4x5x"
#define TCAN4X5X_EXT_CLK_DEF 40000000
#define TCAN4X5X_DEV_ID0 0x00
}
static struct can_bittiming_const tcan4x5x_bittiming_const = {
- .name = DEVICE_NAME,
+ .name = KBUILD_MODNAME,
.tseg1_min = 2,
.tseg1_max = 31,
.tseg2_min = 2,
};
static struct can_bittiming_const tcan4x5x_data_bittiming_const = {
- .name = DEVICE_NAME,
+ .name = KBUILD_MODNAME,
.tseg1_min = 1,
.tseg1_max = 32,
.tseg2_min = 1,
static struct spi_driver tcan4x5x_can_driver = {
.driver = {
- .name = DEVICE_NAME,
+ .name = KBUILD_MODNAME,
.of_match_table = tcan4x5x_of_match,
.pm = NULL,
},