]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/i2c/algos/i2c-algo-sibyte.c
[PATCH] I2C: Kill i2c_algorithm.id (4/7)
[linux-2.6-omap-h63xx.git] / drivers / i2c / algos / i2c-algo-sibyte.c
index f2785499237bf10135f571c0ebfddb9b9e4e5474..c01108ae7b6932ecd41e4d81e0775c6a5f9027d8 100644 (file)
@@ -135,8 +135,6 @@ static u32 bit_func(struct i2c_adapter *adap)
 /* -----exported algorithm data: ------------------------------------- */
 
 static struct i2c_algorithm i2c_sibyte_algo = {
-       .name           = "SiByte algorithm",
-       .id             = I2C_ALGO_SIBYTE,
        .smbus_xfer     = smbus_xfer,
        .algo_control   = algo_control, /* ioctl */
        .functionality  = bit_func,
@@ -152,7 +150,7 @@ int i2c_sibyte_add_bus(struct i2c_adapter *i2c_adap, int speed)
 
        /* register new adapter to i2c module... */
 
-       i2c_adap->id |= i2c_sibyte_algo.id;
+       i2c_adap->id |= I2C_ALGO_SIBYTE;
        i2c_adap->algo = &i2c_sibyte_algo;
         
         /* Set the frequency to 100 kHz */