hwmon: (w83795) Make W83795_REG_PWM more efficient
authorJean Delvare <khali@linux-fr.org>
Thu, 28 Oct 2010 18:31:48 +0000 (20:31 +0200)
committerJean Delvare <khali@endymion.delvare>
Thu, 28 Oct 2010 18:31:48 +0000 (20:31 +0200)
commitfd7f82b8a37ff4d400c2db9c9fa8f9467dc54a08
tree41eff04a59f8b78d5d3950911e60851277043ab7
parent5f7b77cbd4599b6a90d18981d9883a3e20e689fb
hwmon: (w83795) Make W83795_REG_PWM more efficient

Cascaded conditionals are inefficient. Reorder the fields so that
PWM register addresses can be computed more efficiently.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/w83795.c