aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2007-10-13 17:56:30 -0400
committerJean Delvare <khali@hyperion.delvare>2007-10-13 17:56:30 -0400
commit83eaaed0d00c4c8e3081dc29286910899fed3182 (patch)
tree6580c2f72350d2b14df40df5a42e738660202643
parent3bbb835d4c53faf0bca62f0e39835926bef40b1f (diff)
i2c-core: Make some code static
After the i2c-isa removal some code can become static. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Jean Delvare <khali@linux-fr.org>
-rw-r--r--drivers/i2c/i2c-core.c7
-rw-r--r--include/linux/i2c.h2
2 files changed, 3 insertions, 6 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
index 06b4b9e1a23..f95b1b65761 100644
--- a/drivers/i2c/i2c-core.c
+++ b/drivers/i2c/i2c-core.c
@@ -186,7 +186,7 @@ static struct device_attribute i2c_dev_attrs[] = {
186 { }, 186 { },
187}; 187};
188 188
189struct bus_type i2c_bus_type = { 189static struct bus_type i2c_bus_type = {
190 .name = "i2c", 190 .name = "i2c",
191 .dev_attrs = i2c_dev_attrs, 191 .dev_attrs = i2c_dev_attrs,
192 .match = i2c_device_match, 192 .match = i2c_device_match,
@@ -197,7 +197,6 @@ struct bus_type i2c_bus_type = {
197 .suspend = i2c_device_suspend, 197 .suspend = i2c_device_suspend,
198 .resume = i2c_device_resume, 198 .resume = i2c_device_resume,
199}; 199};
200EXPORT_SYMBOL_GPL(i2c_bus_type);
201 200
202/** 201/**
203 * i2c_new_device - instantiate an i2c device for use with a new style driver 202 * i2c_new_device - instantiate an i2c device for use with a new style driver
@@ -281,7 +280,7 @@ EXPORT_SYMBOL_GPL(i2c_unregister_device);
281 280
282/* I2C bus adapters -- one roots each I2C or SMBUS segment */ 281/* I2C bus adapters -- one roots each I2C or SMBUS segment */
283 282
284void i2c_adapter_dev_release(struct device *dev) 283static void i2c_adapter_dev_release(struct device *dev)
285{ 284{
286 struct i2c_adapter *adap = to_i2c_adapter(dev); 285 struct i2c_adapter *adap = to_i2c_adapter(dev);
287 complete(&adap->dev_released); 286 complete(&adap->dev_released);
@@ -299,7 +298,7 @@ static struct device_attribute i2c_adapter_attrs[] = {
299 { }, 298 { },
300}; 299};
301 300
302struct class i2c_adapter_class = { 301static struct class i2c_adapter_class = {
303 .owner = THIS_MODULE, 302 .owner = THIS_MODULE,
304 .name = "i2c-adapter", 303 .name = "i2c-adapter",
305 .dev_attrs = i2c_adapter_attrs, 304 .dev_attrs = i2c_adapter_attrs,
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index e4793feac2b..d4b63171d5d 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -35,8 +35,6 @@
35#include <linux/sched.h> /* for completion */ 35#include <linux/sched.h> /* for completion */
36#include <linux/mutex.h> 36#include <linux/mutex.h>
37 37
38extern struct bus_type i2c_bus_type;
39
40/* --- General options ------------------------------------------------ */ 38/* --- General options ------------------------------------------------ */
41 39
42struct i2c_msg; 40struct i2c_msg;