mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-13 17:00:15 +00:00
Made sure i2c-voodoo3 does not export more symbols than strictly
necessary. Resolved one remaining warning in matorb.c git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@473 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
86ba0c96fd
commit
7ad0562dc3
2 files changed
+34
-8
No files matched your search
@@ -57,6 +57,33 @@ static int voodoo3_cleanup(void);
|
||||
static int voodoo3_setup(void);
|
||||
static s32 voodoo3_access(u8 addr, char read_write,
|
||||
u8 command, int size, union smbus_data * data);
|
||||
static void Voodoo3_I2CStart(void);
|
||||
static void Voodoo3_I2CStop(void);
|
||||
static int Voodoo3_I2CAck(void);
|
||||
static int Voodoo3_I2CReadByte(void);
|
||||
static int Voodoo3_I2CSendByte(unsigned char data);
|
||||
static int Voodoo3_BusCheck(void);
|
||||
static int Voodoo3_I2CRead_byte(int addr);
|
||||
static int Voodoo3_I2CRead_byte_data(int addr,int command);
|
||||
static int Voodoo3_I2CRead_word(int addr,int command);
|
||||
static int Voodoo3_I2CWrite_byte(int addr,int command);
|
||||
static int Voodoo3_I2CWrite_byte_data(int addr,int command,int data);
|
||||
static int Voodoo3_I2CWrite_word(int addr,int command,long data);
|
||||
static void config_v3(struct pci_dev *dev, int num);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef MODULE
|
||||
extern int init_module(void);
|
||||
@@ -70,41 +97,41 @@ static unsigned int state=0xcf980020;
|
||||
static unsigned char *mem;
|
||||
static int v3_num;
|
||||
|
||||
inline void outlong(int off,unsigned int dat)
|
||||
extern inline void outlong(int off,unsigned int dat)
|
||||
{
|
||||
*((unsigned int*)(mem+off))=dat;
|
||||
}
|
||||
|
||||
|
||||
inline unsigned int readlong(int off)
|
||||
extern inline unsigned int readlong(int off)
|
||||
{
|
||||
return *((unsigned int*)(mem+off));
|
||||
}
|
||||
|
||||
inline void out(void)
|
||||
extern inline void out(void)
|
||||
{
|
||||
outlong(0x78,state);
|
||||
udelay(10);
|
||||
}
|
||||
|
||||
inline void dat(int data)
|
||||
extern inline void dat(int data)
|
||||
{
|
||||
state&=~(1<<25);
|
||||
if (data)
|
||||
state|=(1<<25);
|
||||
}
|
||||
|
||||
inline void clkon(void)
|
||||
extern inline void clkon(void)
|
||||
{
|
||||
state|=(1<<24);
|
||||
}
|
||||
|
||||
inline void clkoff(void)
|
||||
extern inline void clkoff(void)
|
||||
{
|
||||
state&=~(1<<24);
|
||||
}
|
||||
|
||||
inline int rdat(void)
|
||||
extern inline int rdat(void)
|
||||
{
|
||||
dat(1);
|
||||
out();
|
||||
|
||||
@@ -68,7 +68,6 @@ static int matorb_command(struct i2c_client *client, unsigned int cmd,
|
||||
void *arg);
|
||||
static void matorb_inc_use (struct i2c_client *client);
|
||||
static void matorb_dec_use (struct i2c_client *client);
|
||||
static int matorb_read_value(struct i2c_client *client, u8 reg);
|
||||
static int matorb_write_value(struct i2c_client *client, u8 reg, u16 value);
|
||||
static void matorb_disp(struct i2c_client *client, int operation, int ctl_name,
|
||||
int *nrels_mag, long *results);
|
||||
|
||||
Reference in new issue
Block a user