1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * (C) Copyright 2014 Freescale Semiconductor, Inc
12 int thermal_get_temp(struct udevice *dev, int *temp);
15 * struct dm_thermal_ops - Driver model Thermal operations
17 * The uclass interface is implemented by all Thermal devices which use
20 struct dm_thermal_ops {
22 * Get the current temperature
24 * This must be called before doing any transfers with a Thermal device.
25 * It will enable and initialize any Thermal hardware as necessary.
27 * @dev: The Thermal device
28 * @temp: pointer that returns the measured temperature
30 int (*get_temp)(struct udevice *dev, int *temp);
33 #endif /* _THERMAL_H_ */