]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/unican.c
Changed filling of the chip specific operations.
[lincan.git] / lincan / src / unican.c
index fde7c00b5fd464662a1535ce9ea1669d11418688..f2c7ec60d1498d6b91c87a2f21ed6a116eee6f8c 100644 (file)
@@ -759,8 +759,6 @@ int unican_init_hw_data(struct candevice_t *candev)
        return 0;
 }
 
-#define CHIP_TYPE "unican"
-
 /**
  * unican_init_chip_data - Initialize chips
  * @candev: Pointer to candevice/board structure
@@ -772,7 +770,7 @@ int unican_init_hw_data(struct candevice_t *candev)
 int unican_init_chip_data(struct candevice_t *candev, int chipnr)
 {
        struct chip_t *chip = candev->chip[chipnr];
-       chip->chip_type = CHIP_TYPE;
+       chip->chip_type = "unican";
        chip->chip_base_addr = 0;
        chip->clock = 10000000;
        chip->int_clk_reg = 0x0;