Commit 5e31c2bd3c865f8f474811340182795396b99696
Committed by
Jean Delvare
1 parent
bd4217d8c6
Exists in
master
and in
7 other branches
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 <khali@linux-fr.org>
Showing 2 changed files with 1 additions and 7 deletions Side-by-side Diff
drivers/i2c/i2c-core.c
... | ... | @@ -673,7 +673,7 @@ |
673 | 673 | return 0; |
674 | 674 | } |
675 | 675 | |
676 | -int i2c_check_addr(struct i2c_adapter *adapter, int addr) | |
676 | +static int i2c_check_addr(struct i2c_adapter *adapter, int addr) | |
677 | 677 | { |
678 | 678 | int rval; |
679 | 679 | |
... | ... | @@ -683,7 +683,6 @@ |
683 | 683 | |
684 | 684 | return rval; |
685 | 685 | } |
686 | -EXPORT_SYMBOL(i2c_check_addr); | |
687 | 686 | |
688 | 687 | int i2c_attach_client(struct i2c_client *client) |
689 | 688 | { |
include/linux/i2c.h
... | ... | @@ -400,11 +400,6 @@ |
400 | 400 | extern void i2c_clients_command(struct i2c_adapter *adap, |
401 | 401 | unsigned int cmd, void *arg); |
402 | 402 | |
403 | -/* returns -EBUSY if address has been taken, 0 if not. Note that the only | |
404 | - other place at which this is called is within i2c_attach_client; so | |
405 | - you can cheat by simply not registering. Not recommended, of course! */ | |
406 | -extern int i2c_check_addr (struct i2c_adapter *adapter, int addr); | |
407 | - | |
408 | 403 | /* Detect function. It iterates over all possible addresses itself. |
409 | 404 | * It will only call found_proc if some client is connected at the |
410 | 405 | * specific address (unless a 'force' matched); |