diff -ura xx-linux-2.6-6-rc3-mm2/drivers/acorn/char/i2c.c linux-2.6-6-rc3-mm2/drivers/acorn/char/i2c.c --- xx-linux-2.6-6-rc3-mm2/drivers/acorn/char/i2c.c 2004-05-09 11:03:40.000000000 +0200 +++ linux-2.6-6-rc3-mm2/drivers/acorn/char/i2c.c 2004-05-09 16:31:58.000000000 +0200 @@ -345,6 +345,7 @@ static struct i2c_adapter ioc_ops = { .id = I2C_HW_B_IOC, .algo_data = &ioc_data, + .class = I2C_CLASS_ALL, .client_register = ioc_client_reg, .client_unregister = ioc_client_unreg, }; diff -ura xx-linux-2.6-6-rc3-mm2/drivers/acorn/char/pcf8583.c linux-2.6-6-rc3-mm2/drivers/acorn/char/pcf8583.c --- xx-linux-2.6-6-rc3-mm2/drivers/acorn/char/pcf8583.c 2004-05-09 11:03:40.000000000 +0200 +++ linux-2.6-6-rc3-mm2/drivers/acorn/char/pcf8583.c 2004-05-09 16:33:20.000000000 +0200 @@ -227,6 +227,7 @@ .name = "PCF8583", .id = I2C_DRIVERID_PCF8583, .flags = I2C_DF_NOTIFY, + .class = I2C_CLASS_ALL, /* fixme: add another I2C_CLASS_xxx entry for Acorn? */ .attach_adapter = pcf8583_probe, .detach_client = pcf8583_detach, .command = pcf8583_command diff -ura xx-linux-2.6-6-rc3-mm2/drivers/i2c/busses/i2c-keywest.c linux-2.6-6-rc3-mm2/drivers/i2c/busses/i2c-keywest.c --- xx-linux-2.6-6-rc3-mm2/drivers/i2c/busses/i2c-keywest.c 2004-05-09 11:03:02.000000000 +0200 +++ linux-2.6-6-rc3-mm2/drivers/i2c/busses/i2c-keywest.c 2004-05-09 16:37:41.000000000 +0200 @@ -619,6 +619,7 @@ chan->iface = iface; chan->chan_no = i; chan->adapter.id = I2C_ALGO_SMBUS; + chan->adapter.class = I2C_CLASS_HWMON | I2C_CLASS_SOUND; chan->adapter.algo = &keywest_algorithm; chan->adapter.algo_data = NULL; chan->adapter.client_register = NULL; diff -ura xx-linux-2.6-6-rc3-mm2/drivers/ieee1394/pcilynx.c linux-2.6-6-rc3-mm2/drivers/ieee1394/pcilynx.c --- xx-linux-2.6-6-rc3-mm2/drivers/ieee1394/pcilynx.c 2004-05-09 11:05:30.000000000 +0200 +++ linux-2.6-6-rc3-mm2/drivers/ieee1394/pcilynx.c 2004-05-09 16:42:30.000000000 +0200 @@ -1799,6 +1799,7 @@ i2c_adapter = bit_ops; i2c_adapter_data = bit_data; i2c_adapter.algo_data = &i2c_adapter_data; + i2c_adapter.class = I2C_CLASS_NONE; i2c_adapter_data.data = lynx; PRINTD(KERN_DEBUG, lynx->id,"original eeprom control: %d", diff -ura xx-linux-2.6-6-rc3-mm2/drivers/macintosh/therm_adt746x.c linux-2.6-6-rc3-mm2/drivers/macintosh/therm_adt746x.c --- xx-linux-2.6-6-rc3-mm2/drivers/macintosh/therm_adt746x.c 2004-05-09 11:03:40.000000000 +0200 +++ linux-2.6-6-rc3-mm2/drivers/macintosh/therm_adt746x.c 2004-05-09 16:30:02.000000000 +0200 @@ -164,6 +164,7 @@ .name ="Apple Thermostat ADT746x", .id =0xDEAD7467, .flags =I2C_DF_NOTIFY, + .class =I2C_CLASS_HWMON, .attach_adapter =&attach_thermostat, .detach_adapter =&detach_thermostat, }; diff -ura xx-linux-2.6-6-rc3-mm2/drivers/macintosh/therm_pm72.c linux-2.6-6-rc3-mm2/drivers/macintosh/therm_pm72.c --- xx-linux-2.6-6-rc3-mm2/drivers/macintosh/therm_pm72.c 2004-05-09 11:03:40.000000000 +0200 +++ linux-2.6-6-rc3-mm2/drivers/macintosh/therm_pm72.c 2004-05-09 16:29:32.000000000 +0200 @@ -142,6 +142,7 @@ .name = "therm_pm72", .id = 0xDEADBEEF, .flags = I2C_DF_NOTIFY, + .class = I2C_CLASS_HWMON, .attach_adapter = therm_pm72_attach, .detach_adapter = therm_pm72_detach, }; diff -ura xx-linux-2.6-6-rc3-mm2/drivers/macintosh/therm_windtunnel.c linux-2.6-6-rc3-mm2/drivers/macintosh/therm_windtunnel.c --- xx-linux-2.6-6-rc3-mm2/drivers/macintosh/therm_windtunnel.c 2004-05-09 11:03:40.000000000 +0200 +++ linux-2.6-6-rc3-mm2/drivers/macintosh/therm_windtunnel.c 2004-05-09 16:29:13.000000000 +0200 @@ -357,6 +357,7 @@ .name = "Apple G4 Thermostat/Fan", .id = I2C_DRIVERID_G4FAN, .flags = I2C_DF_NOTIFY, + .class = I2C_CLASS_HWMON, .attach_adapter = &do_attach, .detach_client = &do_detach, .command = NULL, diff -ura xx-linux-2.6-6-rc3-mm2/include/linux/i2c.h linux-2.6-6-rc3-mm2/include/linux/i2c.h --- xx-linux-2.6-6-rc3-mm2/include/linux/i2c.h 2004-05-09 11:11:11.000000000 +0200 +++ linux-2.6-6-rc3-mm2/include/linux/i2c.h 2004-05-09 16:42:13.000000000 +0200 @@ -285,7 +285,8 @@ #define I2C_CLIENT_TEN 0x10 /* we have a ten bit chip address */ /* Must equal I2C_M_TEN below */ -/* i2c adapter classes (bitmask) */ +/* i2c classes (bitmask) */ +#define I2C_CLASS_NONE 0 /* none, don't use */ #define I2C_CLASS_HWMON (1<<0) /* lm_sensors, ... */ #define I2C_CLASS_TV_ANALOG (1<<1) /* bttv + friends */ #define I2C_CLASS_TV_DIGITAL (1<<2) /* dvb cards */ diff -ura xx-linux-2.6-6-rc3-mm2/sound/oss/dmasound/dac3550a.c linux-2.6-6-rc3-mm2/sound/oss/dmasound/dac3550a.c --- xx-linux-2.6-6-rc3-mm2/sound/oss/dmasound/dac3550a.c 2004-05-09 11:04:50.000000000 +0200 +++ linux-2.6-6-rc3-mm2/sound/oss/dmasound/dac3550a.c 2004-05-09 16:38:47.000000000 +0200 @@ -47,6 +47,7 @@ .name = "DAC3550A driver V " DACA_VERSION, .id = I2C_DRIVERID_DACA, .flags = I2C_DF_NOTIFY, + .class = I2C_CLASS_SOUND, .attach_adapter = daca_attach_adapter, .detach_client = daca_detach_client, }; diff -ura xx-linux-2.6-6-rc3-mm2/sound/oss/dmasound/tas_common.c linux-2.6-6-rc3-mm2/sound/oss/dmasound/tas_common.c --- xx-linux-2.6-6-rc3-mm2/sound/oss/dmasound/tas_common.c 2004-05-09 11:04:50.000000000 +0200 +++ linux-2.6-6-rc3-mm2/sound/oss/dmasound/tas_common.c 2004-05-09 16:39:01.000000000 +0200 @@ -50,6 +50,7 @@ .owner = THIS_MODULE, .name = "tas", .flags = I2C_DF_NOTIFY, + .class = I2C_CLASS_SOUND, .attach_adapter = tas_attach_adapter, .detach_client = tas_detach_client, }; diff -ura xx-linux-2.6-6-rc3-mm2/sound/ppc/keywest.c linux-2.6-6-rc3-mm2/sound/ppc/keywest.c --- xx-linux-2.6-6-rc3-mm2/sound/ppc/keywest.c 2004-05-09 11:06:53.000000000 +0200 +++ linux-2.6-6-rc3-mm2/sound/ppc/keywest.c 2004-05-09 16:38:03.000000000 +0200 @@ -44,6 +44,7 @@ .name = "PMac Keywest Audio", .id = I2C_DRIVERID_KEYWEST, .flags = I2C_DF_NOTIFY, + .class = I2C_CLASS_SOUND, .attach_adapter = &keywest_attach_adapter, .detach_client = &keywest_detach_client, };