From: Guenter Roeck Date: Tue, 19 Jun 2012 15:00:00 +0000 (-0700) Subject: hwmon: (twl4030-madc-hwmon) Initialize uninitialized structure elements X-Git-Tag: v3.2.30~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c0f4d2c4e01687b3edacb34ec73d45c4eccbfd5;p=pandora-kernel.git 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 Signed-off-by: Guenter Roeck Acked-by: Jean Delvare Acked-by: Keerthy Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed