Commit 80d15eb2 authored by Adrian Bunk's avatar Adrian Bunk Committed by Greg Kroah-Hartman

[PATCH] i2c/busses/ : make some code static

The patch below makes some needlessly global code under i2c/busses/
static.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 15e594a8
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
static unsigned short ali1535_smba; static unsigned short ali1535_smba;
DECLARE_MUTEX(i2c_ali1535_sem); static DECLARE_MUTEX(i2c_ali1535_sem);
/* Detect whether a ALI1535 can be found, and initialize it, where necessary. /* Detect whether a ALI1535 can be found, and initialize it, where necessary.
Note the differences between kernels with the old PCI BIOS interface and Note the differences between kernels with the old PCI BIOS interface and
...@@ -465,7 +465,7 @@ static s32 ali1535_access(struct i2c_adapter *adap, u16 addr, ...@@ -465,7 +465,7 @@ static s32 ali1535_access(struct i2c_adapter *adap, u16 addr,
} }
u32 ali1535_func(struct i2c_adapter *adapter) static u32 ali1535_func(struct i2c_adapter *adapter)
{ {
return I2C_FUNC_SMBUS_QUICK | I2C_FUNC_SMBUS_BYTE | return I2C_FUNC_SMBUS_QUICK | I2C_FUNC_SMBUS_BYTE |
I2C_FUNC_SMBUS_BYTE_DATA | I2C_FUNC_SMBUS_WORD_DATA | I2C_FUNC_SMBUS_BYTE_DATA | I2C_FUNC_SMBUS_WORD_DATA |
......
...@@ -67,7 +67,7 @@ struct amd_smbus { ...@@ -67,7 +67,7 @@ struct amd_smbus {
* ACPI 2.0 chapter 13 access of registers of the EC * ACPI 2.0 chapter 13 access of registers of the EC
*/ */
unsigned int amd_ec_wait_write(struct amd_smbus *smbus) static unsigned int amd_ec_wait_write(struct amd_smbus *smbus)
{ {
int timeout = 500; int timeout = 500;
...@@ -82,7 +82,7 @@ unsigned int amd_ec_wait_write(struct amd_smbus *smbus) ...@@ -82,7 +82,7 @@ unsigned int amd_ec_wait_write(struct amd_smbus *smbus)
return 0; return 0;
} }
unsigned int amd_ec_wait_read(struct amd_smbus *smbus) static unsigned int amd_ec_wait_read(struct amd_smbus *smbus)
{ {
int timeout = 500; int timeout = 500;
...@@ -97,7 +97,7 @@ unsigned int amd_ec_wait_read(struct amd_smbus *smbus) ...@@ -97,7 +97,7 @@ unsigned int amd_ec_wait_read(struct amd_smbus *smbus)
return 0; return 0;
} }
unsigned int amd_ec_read(struct amd_smbus *smbus, unsigned char address, unsigned char *data) static unsigned int amd_ec_read(struct amd_smbus *smbus, unsigned char address, unsigned char *data)
{ {
if (amd_ec_wait_write(smbus)) if (amd_ec_wait_write(smbus))
return -1; return -1;
...@@ -114,7 +114,7 @@ unsigned int amd_ec_read(struct amd_smbus *smbus, unsigned char address, unsigne ...@@ -114,7 +114,7 @@ unsigned int amd_ec_read(struct amd_smbus *smbus, unsigned char address, unsigne
return 0; return 0;
} }
unsigned int amd_ec_write(struct amd_smbus *smbus, unsigned char address, unsigned char data) static unsigned int amd_ec_write(struct amd_smbus *smbus, unsigned char address, unsigned char data)
{ {
if (amd_ec_wait_write(smbus)) if (amd_ec_wait_write(smbus))
return -1; return -1;
...@@ -174,7 +174,7 @@ unsigned int amd_ec_write(struct amd_smbus *smbus, unsigned char address, unsign ...@@ -174,7 +174,7 @@ unsigned int amd_ec_write(struct amd_smbus *smbus, unsigned char address, unsign
#define AMD_SMB_PRTCL_PEC 0x80 #define AMD_SMB_PRTCL_PEC 0x80
s32 amd8111_access(struct i2c_adapter * adap, u16 addr, unsigned short flags, static s32 amd8111_access(struct i2c_adapter * adap, u16 addr, unsigned short flags,
char read_write, u8 command, int size, union i2c_smbus_data * data) char read_write, u8 command, int size, union i2c_smbus_data * data)
{ {
struct amd_smbus *smbus = adap->algo_data; struct amd_smbus *smbus = adap->algo_data;
...@@ -315,7 +315,7 @@ s32 amd8111_access(struct i2c_adapter * adap, u16 addr, unsigned short flags, ...@@ -315,7 +315,7 @@ s32 amd8111_access(struct i2c_adapter * adap, u16 addr, unsigned short flags,
} }
u32 amd8111_func(struct i2c_adapter *adapter) static u32 amd8111_func(struct i2c_adapter *adapter)
{ {
return I2C_FUNC_SMBUS_QUICK | I2C_FUNC_SMBUS_BYTE | I2C_FUNC_SMBUS_BYTE_DATA | return I2C_FUNC_SMBUS_QUICK | I2C_FUNC_SMBUS_BYTE | I2C_FUNC_SMBUS_BYTE_DATA |
I2C_FUNC_SMBUS_WORD_DATA | I2C_FUNC_SMBUS_BLOCK_DATA | I2C_FUNC_SMBUS_WORD_DATA | I2C_FUNC_SMBUS_BLOCK_DATA |
......
...@@ -402,9 +402,9 @@ static struct i2c_algorithm scx200_acb_algorithm = { ...@@ -402,9 +402,9 @@ static struct i2c_algorithm scx200_acb_algorithm = {
.functionality = scx200_acb_func, .functionality = scx200_acb_func,
}; };
struct scx200_acb_iface *scx200_acb_list; static struct scx200_acb_iface *scx200_acb_list;
int scx200_acb_probe(struct scx200_acb_iface *iface) static int scx200_acb_probe(struct scx200_acb_iface *iface)
{ {
u8 val; u8 val;
......
...@@ -86,7 +86,7 @@ static struct i2c_adapter scx200_i2c_ops = { ...@@ -86,7 +86,7 @@ static struct i2c_adapter scx200_i2c_ops = {
.name = "NatSemi SCx200 I2C", .name = "NatSemi SCx200 I2C",
}; };
int scx200_i2c_init(void) static int scx200_i2c_init(void)
{ {
pr_debug(NAME ": NatSemi SCx200 I2C Driver\n"); pr_debug(NAME ": NatSemi SCx200 I2C Driver\n");
...@@ -115,7 +115,7 @@ int scx200_i2c_init(void) ...@@ -115,7 +115,7 @@ int scx200_i2c_init(void)
return 0; return 0;
} }
void scx200_i2c_cleanup(void) static void scx200_i2c_cleanup(void)
{ {
i2c_bit_del_bus(&scx200_i2c_ops); i2c_bit_del_bus(&scx200_i2c_ops);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment