// SPDX-License-Identifier: GPL-2.0+
/*
 * (C) Copyright 2014 Freescale Semiconductor, Inc
 */

#define LOG_CATEGORY UCLASS_THERMAL

#include <dm.h>
#include <thermal.h>
#include <errno.h>
#include <fdtdec.h>
#include <malloc.h>
#include <asm/io.h>
#include <linux/list.h>


int thermal_get_temp(struct udevice *dev, int *temp)
{
	const struct dm_thermal_ops *ops = device_get_ops(dev);

	if (!ops->get_temp)
		return -ENOSYS;

	return ops->get_temp(dev, temp);
}

UCLASS_DRIVER(thermal) = {
	.id		= UCLASS_THERMAL,
	.name		= "thermal",
};
