Commit:     5e31c2bd3c865f8f474811340182795396b99696
Parent:     bd4217d8c6ef48425c8d6b28d2e089a83e01af04
Author:     Jean Delvare <[EMAIL PROTECTED]>
AuthorDate: Thu Nov 15 19:24:02 2007 +0100
Committer:  Jean Delvare <[EMAIL PROTECTED]>
CommitDate: Thu Nov 15 19:24:02 2007 +0100

    i2c: Make i2c_check_addr static
    i2c_check_addr is only used inside i2c-core now, so we can make it
    static and stop exporting it. Thanks to David Brownell for noticing.
    Signed-off-by: Jean Delvare <[EMAIL PROTECTED]>
 drivers/i2c/i2c-core.c |    3 +--
 include/linux/i2c.h    |    5 -----
 2 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
index 1a4e8dc..b5e13e4 100644
--- a/drivers/i2c/i2c-core.c
+++ b/drivers/i2c/i2c-core.c
@@ -673,7 +673,7 @@ static int __i2c_check_addr(struct i2c_adapter *adapter, 
unsigned int addr)
        return 0;
-int i2c_check_addr(struct i2c_adapter *adapter, int addr)
+static int i2c_check_addr(struct i2c_adapter *adapter, int addr)
        int rval;
@@ -683,7 +683,6 @@ int i2c_check_addr(struct i2c_adapter *adapter, int addr)
        return rval;
 int i2c_attach_client(struct i2c_client *client)
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index 8033e6b..a100c9f 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -400,11 +400,6 @@ extern int i2c_release_client(struct i2c_client *);
 extern void i2c_clients_command(struct i2c_adapter *adap,
                                unsigned int cmd, void *arg);
-/* returns -EBUSY if address has been taken, 0 if not. Note that the only
-   other place at which this is called is within i2c_attach_client; so
-   you can cheat by simply not registering. Not recommended, of course! */
-extern int i2c_check_addr (struct i2c_adapter *adapter, int addr);
 /* Detect function. It iterates over all possible addresses itself.
  * It will only call found_proc if some client is connected at the
  * specific address (unless a 'force' matched);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to