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

Commit 444271f5 authored by Guru Das Srinagesh's avatar Guru Das Srinagesh
Browse files

thermal: adc-tm: Fix match table description and Makefile



Due to an error in the specification of the multiple compatible strings
in the match table, nodes defined with compatible string "adc-tm5-iio"
failed to probe. Fix this.

Also change the compilation recipe in the Makefile to prevent generation
of multiple kernel modules.

Change-Id: I6cf544b202dfb0773215aeaeae8a12bae5b79dde
Signed-off-by: default avatarGuru Das Srinagesh <gurus@codeaurora.org>
parent 4c77e0c0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4,7 +4,8 @@ obj-$(CONFIG_QCOM_TSENS) += qcom_tsens.o
qcom_tsens-y			+= tsens.o tsens-common.o tsens-v0_1.o \
				   tsens-8960.o tsens-v2.o tsens-v1.o
obj-$(CONFIG_QCOM_SPMI_TEMP_ALARM)	+= qcom-spmi-temp-alarm.o
obj-$(CONFIG_QTI_ADC_TM) += adc-tm.o adc-tm-common.o adc-tm5.o adc-tm7.o
obj-$(CONFIG_QTI_ADC_TM) += adc-tm.o
adc-tm-y += adc-tm-common.o adc-tm5.o adc-tm7.o
obj-$(CONFIG_QTI_QMI_SENSOR) += qti_qmi_sensor.o
qti_qmi_sensor-y += thermal_sensor_service_v01.o qmi_sensors.o

+3 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
 */

#include <linux/err.h>
@@ -188,7 +188,8 @@ static const struct of_device_id adc_tm_match_table[] = {
	{
		.compatible = "qcom,adc-tm5-iio",
		.data = &data_adc_tm5,

	},
	{
		.compatible = "qcom,adc-tm7",
		.data = &data_adc_tm7,
	},