Skip to content
Snippets Groups Projects
Commit 1e6464db authored by Linux Build Service Account's avatar Linux Build Service Account
Browse files

Promotion of opensource-tools.lnx.1.0-00014.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
2066841   I2894c217a5deaafe1ded2a628ddeefa026ca030b   lrdp-v2: cpr3_info: ignore apm data structure when it is

Change-Id: I7c66ccae818eb2ed1da1ef90160d15772f45b17c
CRs-Fixed: 2066841
parents 5f18fa03 4852615c
No related branches found
No related tags found
No related merge requests found
# Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
# Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 and
......@@ -218,6 +218,9 @@ class CPR3Info(RamParser):
if apm_thresh_volt == 0:
return
tmp = '%-30s = %d uV\n' % ("APM threshold", apm_thresh_volt)
if apm_addr == 0:
self.output.append(tmp)
return
apm_supply = self.ramdump.read_int(
apm_addr + self.ramdump.field_offset('struct msm_apm_ctrl_dev',
'supply'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment