(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

+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. */