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

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

Merge "drivers: thermal: virtual-sensor: Add new virtual sensor for MSM8917"

parents e2f97a82 efdce97d
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2019,2021, The Linux Foundation. All rights reserved.
 */

#include <linux/thermal.h>
@@ -173,6 +173,16 @@ static const struct virtual_sensor_data qti_virtual_sensors[] = {
		.coefficients = {30, 70},
		.avg_denominator = 100,
	},
	{
		.virt_zone_name = "penta-cpu-max-step",
		.num_sensors = 5,
		.sensor_names = {"apc1-cpu0-usr",
				"apc1-cpu1-usr",
				"apc1-cpu2-usr",
				"apc1-cpu3-usr",
				"cpuss-usr"},
		.logic = VIRT_MAXIMUM,
	},
};

int qti_virtual_sensor_register(struct device *dev)