summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-12-20 23:44:56 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-12-20 23:44:55 -0800
commitfd1d20a98836ac6e808d4425b2fceee152364c3c (patch)
treeca280bb89de327709595b71e4e8907d247862204 /drivers/hwmon
parent186d081d945591a89e73f9327e2bd3d5f96bf929 (diff)
parent884c1cb85a96e27d8ff88beeaf0f52af3b723891 (diff)
Merge "hwmon: qpnp-adc: Initialize variables in get_devicetree function"
Diffstat (limited to 'drivers/hwmon')
-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,