]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (zl6100) Maintain delay parameter in driver instance data
authorGuenter Roeck <linux@roeck-us.net>
Wed, 7 Mar 2012 11:58:55 +0000 (03:58 -0800)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Wed, 7 Mar 2012 17:48:43 +0000 (09:48 -0800)
commit20b8a21db14e2c57ec99db4edfcfd170db5b2017
tree0ee31e81c7da73a4ef7708dc05ae34bc03c0d7f5
parente8232163dde4b1e810999037cc105e7c1b63bd5d
hwmon: (zl6100) Maintain delay parameter in driver instance data

A global delay parameter has the side effect of being overwritten with 0 if a
single ZL2004 or ZL6105 is instantiated. If other chips supported by the same
driver are in the system, this will result in access errors for those chips.

To solve the problem, keep a per-instance copy of the delay parameter, and do
not change the original parameter.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Cc: stable@vger.kernel.org # 3.1+
Acked-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/pmbus/zl6100.c