i2c: Remove i2c_algorithm.algo_control()
authorDavid Brownell <david-b@pacbell.net>
Sat, 13 Oct 2007 21:56:32 +0000 (23:56 +0200)
committerJean Delvare <khali@hyperion.delvare>
Sat, 13 Oct 2007 21:56:32 +0000 (23:56 +0200)
commit53be79593452e568a856f8393985131848d59b72
treeb1abe8a310486a6c0c146cdaf35f93e1f9faada3
parentcdeec3cc79c7b1acfa89fb362b01e544ecfb285c
i2c: Remove i2c_algorithm.algo_control()

This removes:

 - An effectively unused hook:  i2c_algorithm.algo_control.

 - The i2c_control() call, used only by i2c-dev to call that
   unused hook or set two barely supported adapter params.

   (That param setting moves into i2c-dev.c ... still iffy
   due to lack of locking, but no other changes.)

As shown by diffstat, this is a net code shrink.  It also reduces the
complexity of the I2C adapter and /dev interfaces.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/i2c-core.c
drivers/i2c/i2c-dev.c
include/linux/i2c.h