diff options
author | David Brownell <david-b@pacbell.net> | 2007-10-13 17:56:32 -0400 |
---|---|---|
committer | Jean Delvare <khali@hyperion.delvare> | 2007-10-13 17:56:32 -0400 |
commit | 53be79593452e568a856f8393985131848d59b72 (patch) | |
tree | b1abe8a310486a6c0c146cdaf35f93e1f9faada3 /include/linux/i2c.h | |
parent | cdeec3cc79c7b1acfa89fb362b01e544ecfb285c (diff) |
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>
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r-- | include/linux/i2c.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 8fc4310f071b..ae477b3106a2 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h | |||
@@ -290,9 +290,6 @@ struct i2c_algorithm { | |||
290 | unsigned short flags, char read_write, | 290 | unsigned short flags, char read_write, |
291 | u8 command, int size, union i2c_smbus_data * data); | 291 | u8 command, int size, union i2c_smbus_data * data); |
292 | 292 | ||
293 | /* --- ioctl like call to set div. parameters. */ | ||
294 | int (*algo_control)(struct i2c_adapter *, unsigned int, unsigned long); | ||
295 | |||
296 | /* To determine what the adapter supports */ | 293 | /* To determine what the adapter supports */ |
297 | u32 (*functionality) (struct i2c_adapter *); | 294 | u32 (*functionality) (struct i2c_adapter *); |
298 | }; | 295 | }; |
@@ -416,10 +413,6 @@ extern int i2c_probe(struct i2c_adapter *adapter, | |||
416 | struct i2c_client_address_data *address_data, | 413 | struct i2c_client_address_data *address_data, |
417 | int (*found_proc) (struct i2c_adapter *, int, int)); | 414 | int (*found_proc) (struct i2c_adapter *, int, int)); |
418 | 415 | ||
419 | /* An ioctl like call to set div. parameters of the adapter. | ||
420 | */ | ||
421 | extern int i2c_control(struct i2c_client *,unsigned int, unsigned long); | ||
422 | |||
423 | extern struct i2c_adapter* i2c_get_adapter(int id); | 416 | extern struct i2c_adapter* i2c_get_adapter(int id); |
424 | extern void i2c_put_adapter(struct i2c_adapter *adap); | 417 | extern void i2c_put_adapter(struct i2c_adapter *adap); |
425 | 418 | ||