Commit 402673e9 authored by Siddartha Mohanadoss's avatar Siddartha Mohanadoss
Browse files

hwmon: pm8xxx-adc: Fix reading sysfs for vbatt



The memory where the sysfs attribute is stored on
initialization gets overwritten causing invalid length
on the vbatt sysfs reading. Fix it by removing the
dynamic memory allocation for BTM parameters.

Change-Id: If8b88c9460b0018a159688b5ba28798d97e0b0b6
Signed-off-by: default avatarSiddartha Mohanadoss <smohanad@codeaurora.org>
parent ad4b25a9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment