From: Adrian Bunk <bunk@stusta.de>
To: khali@linux-fr.org
Cc: i2c@lm-sensors.org, linux-kernel@vger.kernel.org
Subject: [2.6 patch] drivers/i2c/i2c-core.c: make code static
Date: Sun, 29 Jul 2007 16:57:08 +0200 [thread overview]
Message-ID: <20070729145708.GL16817@stusta.de> (raw)
After the i2c-isa removal some code can become static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
drivers/i2c/i2c-core.c | 7 +++----
include/linux/i2c.h | 2 --
2 files changed, 3 insertions(+), 6 deletions(-)
--- linux-2.6.23-rc1-mm1/include/linux/i2c.h.old 2007-07-26 12:46:44.000000000 +0200
+++ linux-2.6.23-rc1-mm1/include/linux/i2c.h 2007-07-26 12:46:53.000000000 +0200
@@ -35,8 +35,6 @@
#include <linux/sched.h> /* for completion */
#include <linux/mutex.h>
-extern struct bus_type i2c_bus_type;
-
/* --- General options ------------------------------------------------ */
struct i2c_msg;
--- linux-2.6.23-rc1-mm1/drivers/i2c/i2c-core.c.old 2007-07-26 08:59:44.000000000 +0200
+++ linux-2.6.23-rc1-mm1/drivers/i2c/i2c-core.c 2007-07-26 09:01:42.000000000 +0200
@@ -190,7 +190,7 @@
{ },
};
-struct bus_type i2c_bus_type = {
+static struct bus_type i2c_bus_type = {
.name = "i2c",
.dev_attrs = i2c_dev_attrs,
.match = i2c_device_match,
@@ -201,7 +201,6 @@
.suspend = i2c_device_suspend,
.resume = i2c_device_resume,
};
-EXPORT_SYMBOL_GPL(i2c_bus_type);
/**
* i2c_new_device - instantiate an i2c device for use with a new style driver
@@ -285,7 +284,7 @@
/* I2C bus adapters -- one roots each I2C or SMBUS segment */
-void i2c_adapter_dev_release(struct device *dev)
+static void i2c_adapter_dev_release(struct device *dev)
{
struct i2c_adapter *adap = to_i2c_adapter(dev);
complete(&adap->dev_released);
@@ -303,7 +302,7 @@
{ },
};
-struct class i2c_adapter_class = {
+static struct class i2c_adapter_class = {
.owner = THIS_MODULE,
.name = "i2c-adapter",
.dev_attrs = i2c_adapter_attrs,
next reply other threads:[~2007-07-29 15:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-29 14:57 Adrian Bunk [this message]
2007-08-09 9:05 ` [2.6 patch] drivers/i2c/i2c-core.c: make code static Jean Delvare
2007-08-09 15:39 ` David Brownell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070729145708.GL16817@stusta.de \
--to=bunk@stusta.de \
--cc=i2c@lm-sensors.org \
--cc=khali@linux-fr.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.