]> git.hungrycats.org Git - linux/commit
[PATCH] I2C: add Hydra i2c bus driver
authorGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 30 Jan 2004 08:40:31 +0000 (00:40 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 30 Jan 2004 08:40:31 +0000 (00:40 -0800)
commit38b3e80a682696fd5883b87d2720350ee01a2c98
treec33e667b7c0069e8e340ea436eb3328814d8902c
parent586a9edd0761e05d70c1711bfb3e778ecc7146bc
[PATCH] I2C: add Hydra i2c bus driver

Here's a new version, incorporating these comments, and making a few more
changes:
  - Use struct definition in <asm/hydra.h> instead of #defined offset
  - Remove flushes are register writes, they are no longer needed
  - Use pci_resource_start() instead of dev->resource[].start
  - ioremap() the whole resource instead of the first 256 bytes
  - Check for errors returned by ioremap() and i2c_bit_add_bus()
  - Add resource management
  - Call iounmap() in hydra_remove() instead of in i2c_hydra_exit()
  - Let I2C_HYDRA depend on I2C and select I2C_ALGOBIT instead of depending on
    I2C_ALGOBIT
drivers/i2c/busses/Kconfig
drivers/i2c/busses/Makefile
drivers/i2c/busses/i2c-hydra.c [new file with mode: 0644]