patch-2.4.8 linux/include/linux/i2c-dev.h
Next file: linux/include/linux/i2o.h
Previous file: linux/include/linux/hdlc.h
Back to the patch index
Back to the overall index
- Lines: 103
- Date:
Thu Jul 26 13:52:54 2001
- Orig file:
v2.4.7/linux/include/linux/i2c-dev.h
- Orig date:
Fri Dec 29 14:35:47 2000
diff -u --recursive --new-file v2.4.7/linux/include/linux/i2c-dev.h linux/include/linux/i2c-dev.h
@@ -49,7 +49,7 @@
#include <sys/ioctl.h>
-extern inline __s32 i2c_smbus_access(int file, char read_write, __u8 command,
+static inline __s32 i2c_smbus_access(int file, char read_write, __u8 command,
int size, union i2c_smbus_data *data)
{
struct i2c_smbus_ioctl_data args;
@@ -62,12 +62,12 @@
}
-extern inline __s32 i2c_smbus_write_quick(int file, __u8 value)
+static inline __s32 i2c_smbus_write_quick(int file, __u8 value)
{
return i2c_smbus_access(file,value,0,I2C_SMBUS_QUICK,NULL);
}
-extern inline __s32 i2c_smbus_read_byte(int file)
+static inline __s32 i2c_smbus_read_byte(int file)
{
union i2c_smbus_data data;
if (i2c_smbus_access(file,I2C_SMBUS_READ,0,I2C_SMBUS_BYTE,&data))
@@ -76,13 +76,13 @@
return 0x0FF & data.byte;
}
-extern inline __s32 i2c_smbus_write_byte(int file, __u8 value)
+static inline __s32 i2c_smbus_write_byte(int file, __u8 value)
{
return i2c_smbus_access(file,I2C_SMBUS_WRITE,value,
I2C_SMBUS_BYTE,NULL);
}
-extern inline __s32 i2c_smbus_read_byte_data(int file, __u8 command)
+static inline __s32 i2c_smbus_read_byte_data(int file, __u8 command)
{
union i2c_smbus_data data;
if (i2c_smbus_access(file,I2C_SMBUS_READ,command,
@@ -92,7 +92,7 @@
return 0x0FF & data.byte;
}
-extern inline __s32 i2c_smbus_write_byte_data(int file, __u8 command,
+static inline __s32 i2c_smbus_write_byte_data(int file, __u8 command,
__u8 value)
{
union i2c_smbus_data data;
@@ -101,7 +101,7 @@
I2C_SMBUS_BYTE_DATA, &data);
}
-extern inline __s32 i2c_smbus_read_word_data(int file, __u8 command)
+static inline __s32 i2c_smbus_read_word_data(int file, __u8 command)
{
union i2c_smbus_data data;
if (i2c_smbus_access(file,I2C_SMBUS_READ,command,
@@ -111,7 +111,7 @@
return 0x0FFFF & data.word;
}
-extern inline __s32 i2c_smbus_write_word_data(int file, __u8 command,
+static inline __s32 i2c_smbus_write_word_data(int file, __u8 command,
__u16 value)
{
union i2c_smbus_data data;
@@ -120,7 +120,7 @@
I2C_SMBUS_WORD_DATA, &data);
}
-extern inline __s32 i2c_smbus_process_call(int file, __u8 command, __u16 value)
+static inline __s32 i2c_smbus_process_call(int file, __u8 command, __u16 value)
{
union i2c_smbus_data data;
data.word = value;
@@ -133,7 +133,7 @@
/* Returns the number of read bytes */
-extern inline __s32 i2c_smbus_read_block_data(int file, __u8 command,
+static inline __s32 i2c_smbus_read_block_data(int file, __u8 command,
__u8 *values)
{
union i2c_smbus_data data;
@@ -148,7 +148,7 @@
}
}
-extern inline __s32 i2c_smbus_write_block_data(int file, __u8 command,
+static inline __s32 i2c_smbus_write_block_data(int file, __u8 command,
__u8 length, __u8 *values)
{
union i2c_smbus_data data;
@@ -162,7 +162,7 @@
I2C_SMBUS_BLOCK_DATA, &data);
}
-extern inline __s32 i2c_smbus_write_i2c_block_data(int file, __u8 command,
+static inline __s32 i2c_smbus_write_i2c_block_data(int file, __u8 command,
__u8 length, __u8 *values)
{
union i2c_smbus_data data;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)