Loading drivers/thermal/qcom/qmi_sensors.c +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__ Loading Loading @@ -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 }; Loading Loading @@ -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) Loading include/dt-bindings/thermal/thermal_qti.h +4 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
drivers/thermal/qcom/qmi_sensors.c +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__ Loading Loading @@ -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 }; Loading Loading @@ -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) Loading
include/dt-bindings/thermal/thermal_qti.h +4 −0 Original line number Diff line number Diff line Loading @@ -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 Loading