mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
iio: adc: Add full-scale voltage for PMIC7 ADC
Add full-scale voltage value for PMIC7 ADC to accurately calculate measured channel voltages. Change-Id: Ifb5fdc0e6fb23f21082a3708accb30de2d0abc89 Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
This commit is contained in:
parent
e76088ab26
commit
ae4c65c90a
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
/*
|
||||
* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/bitops.h>
|
||||
|
|
@ -853,6 +853,7 @@ static const struct adc5_data adc5_data_pmic = {
|
|||
};
|
||||
|
||||
static const struct adc5_data adc7_data_pmic = {
|
||||
.full_scale_code_volt = 0x70e4,
|
||||
.adc_chans = adc7_chans_pmic,
|
||||
.decimation = (unsigned int [ADC5_DECIMATION_SAMPLES_MAX])
|
||||
{85, 340, 1360},
|
||||
|
|
|
|||
Loading…
Reference in a new issue