]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2c-dev: Cleanups
authorJean Delvare <khali@linux-fr.org>
Sat, 1 Jul 2006 15:16:57 +0000 (17:16 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Sep 2006 22:38:50 +0000 (15:38 -0700)
commit9455e4c9abf76fa02170743859b2ddbb484e7fdf
treee42acab99cae87ba519fe429025d63840bbc0ec7
parentdd77a4ee0f3981693d4229aa1d57cea9e526ff47
i2c-dev: Cleanups

i2c-dev: Cleanups

* We no more need to include platform_device.h.
* Delete the to_i2c_dev macro, which is no more used (and no more valid
  either.)
* Drop i2c_dev.minor. Now that the minor number always matches the i2c
  adapter number, this field is redundant with i2c_dev.adap->nr.
* Delete i2c_dev_get_by_adapter() which is now redundant with
  i2c_dev_get_by_minor() for the same reason.
* Drop the local variable dev in i2cdev_attach_adapter(), we can
  easily do without it.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/i2c-dev.c