Deleted Added
full compact
26c26
< * $Id: iicbus.c,v 1.5 1998/11/22 22:01:42 nsouch Exp $
---
> * $Id: iicbus.c,v 1.6 1998/12/07 21:58:16 archie Exp $
75a76,77
> *
> * XXX only one smb driver should exist for each I2C interface
79,81c81
< { "iic", IICBUS_DEVICE_CLASS, "PCF8574 I2C to 8 bits parallel i/o", 64},
< { "iic", IICBUS_DEVICE_CLASS, "PCF8584 as slave", PCF_MASTER_ADDRESS },
< { "ic", IICBUS_DEVICE_CLASS, "network interface", PCF_MASTER_ADDRESS },
---
> { "iic", IICBUS_DRIVER_CLASS, "I2C general purpose I/O" },
83c83
< { "iic", IICBUS_DRIVER_CLASS, "General Call", I2C_GENERAL_CALL },
---
> { "ic", IICBUS_DEVICE_CLASS, "network interface", PCF_MASTER_ADDRESS },
124c124,125
< /* always present if probed */
---
> device_set_desc(dev, "Philips I2C bus");
>
127a129
> #if 0
147a150
> #endif
158d160
< int addr;
161a164,169
> /* device probing is meaningless since the bus is supposed to be
> * hot-plug. Moreover, some I2C chips do not appreciate random
> * accesses like stop after start to fast, reads for less than
> * x bytes...
> */
> #if 0
170a179
> #endif
177,178c186
< if (devclass_find(iicdev->iicd_name) &&
< iic_probe_device(dev, iicdev->iicd_addr))
---
> if (devclass_find(iicdev->iicd_name))
179a188,190
> else if (bootverbose)
> printf("iicbus: %s devclass not found\n",
> iicdev->iicd_name);
184c195
< if (!devclass_find(iicdev->iicd_name))
---
> if (devclass_find(iicdev->iicd_name))
185a197,199
> else if (bootverbose)
> printf("iicbus: %s devclass not found\n",
> iicdev->iicd_name);
275d288
< DRIVER_MODULE(iicbus, smbtx, iicbus_driver, iicbus_devclass, 0, 0);