(Phil) Some cleaning up and documentation.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@461 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Philip Edelbrock committed 1999-05-12 05:17:04 +00:00
1 parent e2eaa8a9a4
commit f55a86c7db
5 files changed
+170 -13

No files matched your search

+2 -4
View File
@@ -52,8 +52,6 @@
#define PCI_DEVICE_ID_3DFX_VOODOO3 0x05
#endif
/* insmod parameters */
static int voodoo3_init(void);
static int voodoo3_cleanup(void);
static int voodoo3_setup(void);
@@ -72,7 +70,7 @@ static unsigned int state=0xcf980020;
static unsigned char *mem;
static int v3_num;
inline outlong(int off,unsigned int dat)
inline void outlong(int off,unsigned int dat)
{
*((unsigned int*)(mem+off))=dat;
}
@@ -83,7 +81,7 @@ inline unsigned int readlong(int off)
return *((unsigned int*)(mem+off));
}
inline out(void)
inline void out(void)
{
outlong(0x78,state);
udelay(10);
+1 -7
View File
@@ -86,7 +86,6 @@ static int bt869_command(struct i2c_client *client, unsigned int cmd,
void *arg);
static void bt869_inc_use (struct i2c_client *client);
static void bt869_dec_use (struct i2c_client *client);
static u16 swap_bytes(u16 val);
static int bt869_read_value(struct i2c_client *client, u8 reg);
static int bt869_write_value(struct i2c_client *client, u8 reg, u16 value);
static void bt869_status(struct i2c_client *client, int operation, int ctl_name,
@@ -155,7 +154,7 @@ int bt869_attach_adapter(struct i2c_adapter *adapter)
/* This function is called by sensors_detect */
int bt869_detect(struct i2c_adapter *adapter, int address, int kind)
{
int i,cur,conf,hyst,os;
int i,cur;
struct i2c_client *new_client;
struct bt869_data *data;
int err=0;
@@ -309,11 +308,6 @@ void bt869_dec_use (struct i2c_client *client)
#endif
}
u16 swap_bytes(u16 val)
{
return (val >> 8) | (val << 8);
}
/* All registers are byte-sized.
bt869 uses a high-byte first convention, which is exactly opposite to
the usual practice. */