aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/i2c-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/i2c-core.c')
-rw-r--r--drivers/i2c/i2c-core.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
index 06b4b9e1a23e..f95b1b657618 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,