diff mbox series

i2c: make i2c_check_addr_validity() static

Message ID 20180320205438.32659-1-wsa@the-dreams.de
State Accepted
Headers show
Series i2c: make i2c_check_addr_validity() static | expand

Commit Message

Wolfram Sang March 20, 2018, 8:54 p.m. UTC
After previous refactoring, there is only one user in the same file
left. Make the function static now.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
---
 drivers/i2c/i2c-core-base.c | 2 +-
 drivers/i2c/i2c-core.h      | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

Comments

Wolfram Sang March 24, 2018, 1:08 p.m. UTC | #1
On Tue, Mar 20, 2018 at 09:54:38PM +0100, Wolfram Sang wrote:
> After previous refactoring, there is only one user in the same file
> left. Make the function static now.
> 
> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>

Applied to for-next, thanks!
diff mbox series

Patch

diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c
index 16a3b73375a637..23683f8ba61795 100644
--- a/drivers/i2c/i2c-core-base.c
+++ b/drivers/i2c/i2c-core-base.c
@@ -517,7 +517,7 @@  static unsigned short i2c_encode_flags_to_addr(struct i2c_client *client)
 
 /* This is a permissive address validity check, I2C address map constraints
  * are purposely not enforced, except for the general call address. */
-int i2c_check_addr_validity(unsigned addr, unsigned short flags)
+static int i2c_check_addr_validity(unsigned addr, unsigned short flags)
 {
 	if (flags & I2C_CLIENT_TEN) {
 		/* 10-bit address, all values are valid */
diff --git a/drivers/i2c/i2c-core.h b/drivers/i2c/i2c-core.h
index 3d3d9bf02101bd..37576f50fe20d7 100644
--- a/drivers/i2c/i2c-core.h
+++ b/drivers/i2c/i2c-core.h
@@ -27,7 +27,6 @@  extern struct rw_semaphore	__i2c_board_lock;
 extern struct list_head	__i2c_board_list;
 extern int		__i2c_first_dynamic_bus_num;
 
-int i2c_check_addr_validity(unsigned addr, unsigned short flags);
 int i2c_check_7bit_addr_validity_strict(unsigned short addr);
 
 #ifdef CONFIG_ACPI