From 7d0c01b3094c9ff174dac6836ef067dbb26959de Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Sun, 3 Jun 2001 22:01:14 +0000 Subject: [PATCH] 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 --- kernel/chips/thmc50.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/kernel/chips/thmc50.c b/kernel/chips/thmc50.c index 8fc77bf2..d8d9160c 100644 --- a/kernel/chips/thmc50.c +++ b/kernel/chips/thmc50.c @@ -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. */