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

Commit 7368df7d authored by Anand N Sunkad's avatar Anand N Sunkad
Browse files

wcnss: Read configuration parameter from dtsi to configure ADC channel



Read configuration parameter from dtsi, which determine
which ADC HW channel need to configure for VBATT feature.

Change-Id: I73c77b2b4a457e9fa628997cfedaffde4a6cd2c1
Signed-off-by: default avatarAnand N Sunkad <asunka@codeaurora.org>
parent aa3aa09a
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -2725,6 +2725,9 @@ wcnss_trigger_config(struct platform_device *pdev)
	is_pronto_v3 = of_property_read_bool(pdev->dev.of_node,
	is_pronto_v3 = of_property_read_bool(pdev->dev.of_node,
							"qcom,is-pronto-v3");
							"qcom,is-pronto-v3");


	penv->is_vsys_adc_channel = of_property_read_bool(pdev->dev.of_node,
						"qcom,has-vsys-adc-channel");

	if (of_property_read_u32(pdev->dev.of_node,
	if (of_property_read_u32(pdev->dev.of_node,
			"qcom,wlan-rx-buff-count", &penv->wlan_rx_buff_count)) {
			"qcom,wlan-rx-buff-count", &penv->wlan_rx_buff_count)) {
		penv->wlan_rx_buff_count = WCNSS_DEF_WLAN_RX_BUFF_COUNT;
		penv->wlan_rx_buff_count = WCNSS_DEF_WLAN_RX_BUFF_COUNT;