hwmon: (twl4030-madc-hwmon) Initialize uninitialized structure elements
authorGuenter Roeck <linux@roeck-us.net>
Tue, 19 Jun 2012 15:00:00 +0000 (08:00 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 19 Sep 2012 14:05:21 +0000 (15:05 +0100)
commit0c0f4d2c4e01687b3edacb34ec73d45c4eccbfd5
tree87800db201772e3719daabe9b245e3a553f229ae
parent3bef14ff773afb2b26c05b30418a0b891563b0a9
hwmon: (twl4030-madc-hwmon) Initialize uninitialized structure elements

commit 73d7c119255615a26070f9d6cdb722a166a29015 upstream.

twl4030_madc_conversion uses do_avg and type structure elements of
twl4030_madc_request. Initialize structure to avoid random operation.

Fix for: Coverity CID 200794 Uninitialized scalar variable.

Cc: Keerthy <j-keerthy@ti.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/hwmon/twl4030-madc-hwmon.c