Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 884c1cb8 authored by Rama Krishna Phani A's avatar Rama Krishna Phani A
Browse files

hwmon: qpnp-adc: Initialize variables in get_devicetree function



Properly initialize variables at the time of declaration.

Change-Id: I6eab6b08cb9ec7bfa6523ab3ed66d086eab89544
Signed-off-by: default avatarRama Krishna Phani A <rphani@codeaurora.org>
parent 3162449f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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,