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)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 12 Sep 2012 04:16:27 +0000 (21:16 -0700)
commit73d7c119255615a26070f9d6cdb722a166a29015
tree0cd14b1cd889fb0e04a8d3e234bce9657ea2102c
parent55d512e245bc7699a8800e23df1a24195dd08217
hwmon: (twl4030-madc-hwmon) Initialize uninitialized structure elements

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>
Cc: stable@vger.kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Keerthy <j-keerthy@ti.com>
drivers/hwmon/twl4030-madc-hwmon.c