summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRama Krishna Phani A <rphani@codeaurora.org>2016-12-14 19:53:31 +0530
committerRama Krishna Phani A <rphani@codeaurora.org>2016-12-14 20:00:12 +0530
commit884c1cb85a96e27d8ff88beeaf0f52af3b723891 (patch)
tree0b2a22012b644f6cfd822fa9dd551060a97edd05 /drivers
parent3162449f7d245d45f007d4ea3224576ddf1bcc63 (diff)
hwmon: qpnp-adc: Initialize variables in get_devicetree function
Properly initialize variables at the time of declaration. Change-Id: I6eab6b08cb9ec7bfa6523ab3ed66d086eab89544 Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hwmon/qpnp-adc-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/qpnp-adc-common.c b/drivers/hwmon/qpnp-adc-common.c
index d8ef5f59edcb..567fa0c360ae 100644
--- a/drivers/hwmon/qpnp-adc-common.c
+++ b/drivers/hwmon/qpnp-adc-common.c
@@ -1896,8 +1896,8 @@ int32_t qpnp_adc_get_devicetree_data(struct platform_device *pdev,
}
for_each_child_of_node(node, child) {
- int channel_num, scaling, post_scaling, hw_settle_time;
- int fast_avg_setup, calib_type = 0, rc;
+ int channel_num, scaling = 0, post_scaling = 0;
+ int fast_avg_setup, calib_type = 0, rc, hw_settle_time = 0;
const char *calibration_param, *channel_name;
channel_name = of_get_property(child,