[media] TM6000: Drop unused macro
authorJean Delvare <khali@linux-fr.org>
Sun, 7 Nov 2010 15:54:39 +0000 (12:54 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Dec 2010 10:16:45 +0000 (08:16 -0200)
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Michel Ludwig <michel.ludwig@gmail.com>
Cc: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/tm6000/tm6000-i2c.c

index 798087e9efb9a672d9bf710f2fec5a8c629694f2..18de4748f27ecc9c4120acecfabab93f902db0a6 100644 (file)
@@ -301,18 +301,6 @@ static u32 functionality(struct i2c_adapter *adap)
        return I2C_FUNC_SMBUS_EMUL;
 }
 
-#define mass_write(addr, reg, data...)                                 \
-       { static const u8 _val[] = data;                                \
-       rc = tm6000_read_write_usb(dev, USB_DIR_OUT | USB_TYPE_VENDOR,  \
-       REQ_16_SET_GET_I2C_WR1_RDN, (reg<<8)+addr, 0x00, (u8 *) _val,   \
-       ARRAY_SIZE(_val));                                              \
-       if (rc < 0) {                                                   \
-               printk(KERN_ERR "Error on line %d: %d\n", __LINE__, rc);        \
-               return rc;                                              \
-       }                                                               \
-       msleep(10);                                                     \
-       }
-
 static const struct i2c_algorithm tm6000_algo = {
        .master_xfer   = tm6000_i2c_xfer,
        .functionality = functionality,