/* Configure CAN type */
switch (c_can_pci_data->type) {
- case C_CAN_DEVTYPE:
+ case BOSCH_C_CAN:
priv->regs = reg_map_c_can;
break;
- case D_CAN_DEVTYPE:
+ case BOSCH_D_CAN:
priv->regs = reg_map_d_can;
priv->can.ctrlmode_supported |= CAN_CTRLMODE_3_SAMPLES;
break;
}
static struct c_can_pci_data c_can_sta2x11= {
- .type = C_CAN_DEVTYPE,
+ .type = BOSCH_C_CAN,
.reg_align = C_CAN_REG_ALIGN_32,
.freq = 52000000, /* 52 Mhz */
};
priv = netdev_priv(dev);
id = platform_get_device_id(pdev);
switch (id->driver_data) {
- case C_CAN_DEVTYPE:
+ case BOSCH_C_CAN:
priv->regs = reg_map_c_can;
switch (mem->flags & IORESOURCE_MEM_TYPE_MASK) {
case IORESOURCE_MEM_32BIT:
break;
}
break;
- case D_CAN_DEVTYPE:
+ case BOSCH_D_CAN:
priv->regs = reg_map_d_can;
priv->can.ctrlmode_supported |= CAN_CTRLMODE_3_SAMPLES;
priv->read_reg = c_can_plat_read_reg_aligned_to_16bit;
}
static const struct platform_device_id c_can_id_table[] = {
- {
+ [BOSCH_C_CAN_PLATFORM] = {
.name = KBUILD_MODNAME,
- .driver_data = C_CAN_DEVTYPE,
- }, {
+ .driver_data = BOSCH_C_CAN,
+ },
+ [BOSCH_C_CAN] = {
.name = "c_can",
- .driver_data = C_CAN_DEVTYPE,
- }, {
+ .driver_data = BOSCH_C_CAN,
+ },
+ [BOSCH_D_CAN] = {
.name = "d_can",
- .driver_data = D_CAN_DEVTYPE,
+ .driver_data = BOSCH_D_CAN,
}, {
}
};