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

Commit 60fb8456 authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi Committed by Gerrit - the friendly Code Review server
Browse files

drivers: thermal: qmi_sensors: update QMI beamer ADC sensors support



Add new 3 QMI beamer ADC sensors to qmi sensor driver. It enables
thermal framework can configure thermal zone and monitor these sensors
from apps side.

Change-Id: Ifc577ccd312ab57e1f6a88269884c4c92b306264
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
parent d267b6d1
Loading
Loading
Loading
Loading
+7 −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,9 @@ enum qmi_ts_sensor {
	QMI_SYS_THERM1,
	QMI_SYS_THERM2,
	QMI_TS_TSENS_1,
	QMI_TS_BEAMER_W_THERM,
	QMI_TS_BEAMER_N_THERM,
	QMI_TS_BEAMER_E_THERM,
	QMI_TS_MAX_NR
};

@@ -113,6 +116,9 @@ static char sensor_clients[QMI_TS_MAX_NR][QMI_CLIENT_NAME_LENGTH] = {
	{"sys_therm1"},
	{"sys_therm2"},
	{"modem_tsens1"},
	{"BEAMER_W_THERM"},
	{"BEAMER_N_THERM"},
	{"BEAMER_E_THERM"},
};

static int32_t encode_qmi(int32_t val)