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

Commit bca5c0ff authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: qmi_sensor: Add support for mmw ADC thermistors"

parents c3669a6b 7908f910
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
 */

#define pr_fmt(fmt) "%s:%s " fmt, KBUILD_MODNAME, __func__
@@ -56,6 +56,10 @@ enum qmi_ts_sensor {
	QMI_SYS_THERM1,
	QMI_SYS_THERM2,
	QMI_TS_TSENS_1,
	QMI_TS_MMW_PA1,
	QMI_TS_MMW_PA2,
	QMI_TS_MMW_PA3,
	QMI_TS_SDR_MMW,
	QMI_TS_MAX_NR
};

@@ -113,6 +117,10 @@ static char sensor_clients[QMI_TS_MAX_NR][QMI_CLIENT_NAME_LENGTH] = {
	{"sys_therm1"},
	{"sys_therm2"},
	{"modem_tsens1"},
	{"mmw_pa1"},
	{"mmw_pa2"},
	{"mmw_pa3"},
	{"sdr_mmw_therm"},
};

static int32_t encode_qmi(int32_t val)
+4 −0
Original line number Diff line number Diff line
@@ -37,6 +37,10 @@
#define QMI_SYS_THERM_1		23
#define QMI_SYS_THERM_2		24
#define QMI_MODEM_TSENS_1	25
#define QMI_MMW_PA1		26
#define QMI_MMW_PA2		27
#define QMI_MMW_PA3		28
#define QMI_SDR_MMW		29

#define QMI_MODEM_INST_ID	0x0
#define QMI_ADSP_INST_ID	0x1