]>
git.ipfire.org Git - people/ms/u-boot.git/blob - include/thermal.h
3 * (C) Copyright 2014 Freescale Semiconductor, Inc
5 * SPDX-License-Identifier: GPL-2.0+
13 int thermal_get_temp(struct udevice
*dev
, int *temp
);
16 * struct dm_thermal_ops - Driver model Thermal operations
18 * The uclass interface is implemented by all Thermal devices which use
21 struct dm_thermal_ops
{
23 * Get the current temperature
25 * This must be called before doing any transfers with a Thermal device.
26 * It will enable and initialize any Thermal hardware as necessary.
28 * @dev: The Thermal device
29 * @temp: pointer that returns the measured temperature
31 int (*get_temp
)(struct udevice
*dev
, int *temp
);
34 #endif /* _THERMAL_H_ */