diff options
author | Jean Delvare <khali@linux-fr.org> | 2005-07-28 17:09:40 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-09-05 12:14:15 -0400 |
commit | cdcb19219714c796ddef1202e952566c5f86354d (patch) | |
tree | 35569bf55128dbbeac19fc05db8ce2bb940fdb18 /drivers/i2c | |
parent | e6cfb3ad7209e4f4dcdc14f5fc437db55667041f (diff) |
[PATCH] I2C: inline i2c_adapter_id
We could inline i2c_adapter_id, as it is really, really short. Doing
so saves a few bytes both in i2c-core and in the drivers using this
function.
before after diff
drivers/hwmon/adm1026.ko 41344 41305 -39
drivers/hwmon/asb100.ko 27325 27246 -79
drivers/hwmon/gl518sm.ko 20824 20785 -39
drivers/hwmon/it87.ko 26419 26380 -39
drivers/hwmon/lm78.ko 21424 21385 -39
drivers/hwmon/lm85.ko 41034 40939 -95
drivers/hwmon/w83781d.ko 39561 39514 -47
drivers/hwmon/w83792d.ko 32979 32932 -47
drivers/i2c/i2c-core.ko 24708 24531 -177
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/i2c-core.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index b0bceb2fb8b1..20f92e355f56 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c | |||
@@ -759,14 +759,6 @@ int i2c_probe(struct i2c_adapter *adapter, | |||
759 | return 0; | 759 | return 0; |
760 | } | 760 | } |
761 | 761 | ||
762 | /* | ||
763 | * return id number for a specific adapter | ||
764 | */ | ||
765 | int i2c_adapter_id(struct i2c_adapter *adap) | ||
766 | { | ||
767 | return adap->nr; | ||
768 | } | ||
769 | |||
770 | struct i2c_adapter* i2c_get_adapter(int id) | 762 | struct i2c_adapter* i2c_get_adapter(int id) |
771 | { | 763 | { |
772 | struct i2c_adapter *adapter; | 764 | struct i2c_adapter *adapter; |
@@ -1196,7 +1188,6 @@ EXPORT_SYMBOL(i2c_master_send); | |||
1196 | EXPORT_SYMBOL(i2c_master_recv); | 1188 | EXPORT_SYMBOL(i2c_master_recv); |
1197 | EXPORT_SYMBOL(i2c_control); | 1189 | EXPORT_SYMBOL(i2c_control); |
1198 | EXPORT_SYMBOL(i2c_transfer); | 1190 | EXPORT_SYMBOL(i2c_transfer); |
1199 | EXPORT_SYMBOL(i2c_adapter_id); | ||
1200 | EXPORT_SYMBOL(i2c_get_adapter); | 1191 | EXPORT_SYMBOL(i2c_get_adapter); |
1201 | EXPORT_SYMBOL(i2c_put_adapter); | 1192 | EXPORT_SYMBOL(i2c_put_adapter); |
1202 | EXPORT_SYMBOL(i2c_probe); | 1193 | EXPORT_SYMBOL(i2c_probe); |