remove unused swap_bytes() to eliminate compile warning

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1115 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 2001-06-03 22:01:14 +00:00
1 parent 8f5fd797f3
commit 7d0c01b309
1 file changed
-6
-6
View File
@@ -117,7 +117,6 @@ static int thmc50_command(struct i2c_client *client, unsigned int cmd,
void *arg);
static void thmc50_inc_use(struct i2c_client *client);
static void thmc50_dec_use(struct i2c_client *client);
static u16 swap_bytes(u16 val);
static int thmc50_read_value(struct i2c_client *client, u8 reg);
static int thmc50_write_value(struct i2c_client *client, u8 reg,
u16 value);
@@ -328,11 +327,6 @@ void thmc50_dec_use(struct i2c_client *client)
#endif
}
u16 swap_bytes(u16 val)
{
return (val >> 8) | (val << 8);
}
/* All registers are word-sized, except for the configuration register.
THMC50 uses a high-byte first convention, which is exactly opposite to
the usual practice. */