diff options
author | Jean Delvare <khali@linux-fr.org> | 2010-10-28 14:31:45 -0400 |
---|---|---|
committer | Jean Delvare <khali@endymion.delvare> | 2010-10-28 14:31:45 -0400 |
commit | 315bacfdbe5a77309c256b296f30bee13d59462b (patch) | |
tree | a3973d53c67e812c3a6ee5e6b4556af68d653761 /drivers | |
parent | 792d376b4f3f6af302d40373fa864f8b8e691c53 (diff) |
hwmon: (w83795) Misc cleanups
* Improve driver description.
* Drop unused macro.
* Drop unreachable code.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hwmon/w83795.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/hwmon/w83795.c b/drivers/hwmon/w83795.c index c6984c817067..7b93ac296d03 100644 --- a/drivers/hwmon/w83795.c +++ b/drivers/hwmon/w83795.c | |||
@@ -183,8 +183,6 @@ static const u8 IN_LSB_SHIFT_IDX[][2] = { | |||
183 | #define W83795_REG_FAN_MIN_LSB(index) (0xC4 + (index) / 2) | 183 | #define W83795_REG_FAN_MIN_LSB(index) (0xC4 + (index) / 2) |
184 | #define W83795_REG_FAN_MIN_LSB_SHIFT(index) \ | 184 | #define W83795_REG_FAN_MIN_LSB_SHIFT(index) \ |
185 | (((index) % 1) ? 4 : 0) | 185 | (((index) % 1) ? 4 : 0) |
186 | #define W83795_REG_FAN_CTRL_SHIFT(index) \ | ||
187 | (((index) > 7) ? ((index) - 8) : (index)) | ||
188 | 186 | ||
189 | #define W83795_REG_VID_CTRL 0x6A | 187 | #define W83795_REG_VID_CTRL 0x6A |
190 | 188 | ||
@@ -793,9 +791,6 @@ store_pwm_enable(struct device *dev, struct device_attribute *attr, | |||
793 | } | 791 | } |
794 | mutex_unlock(&data->update_lock); | 792 | mutex_unlock(&data->update_lock); |
795 | return count; | 793 | return count; |
796 | |||
797 | mutex_unlock(&data->update_lock); | ||
798 | return -EINVAL; | ||
799 | } | 794 | } |
800 | 795 | ||
801 | static ssize_t | 796 | static ssize_t |
@@ -2131,7 +2126,7 @@ static void __exit sensors_w83795_exit(void) | |||
2131 | } | 2126 | } |
2132 | 2127 | ||
2133 | MODULE_AUTHOR("Wei Song"); | 2128 | MODULE_AUTHOR("Wei Song"); |
2134 | MODULE_DESCRIPTION("w83795 driver"); | 2129 | MODULE_DESCRIPTION("W83795G/ADG hardware monitoring driver"); |
2135 | MODULE_LICENSE("GPL"); | 2130 | MODULE_LICENSE("GPL"); |
2136 | 2131 | ||
2137 | module_init(sensors_w83795_init); | 2132 | module_init(sensors_w83795_init); |