X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fthermal.h;h=11d75256e085967ace76791c9a58c18873f9a5c6;hb=922c6d5d0090e51fdd5bb75795c3384a18f5d2b6;hp=5d6101bec6ee11c96292259cb3ab07c0130b2445;hpb=21008ad6384170767041f1608975473c5ffa7fc7;p=oweals%2Fu-boot.git diff --git a/include/thermal.h b/include/thermal.h index 5d6101bec6..11d75256e0 100644 --- a/include/thermal.h +++ b/include/thermal.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * * (C) Copyright 2014 Freescale Semiconductor, Inc - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef _THERMAL_H_ @@ -13,7 +12,7 @@ int thermal_get_temp(struct udevice *dev, int *temp); /** - * struct struct dm_thermal_ops - Driver model Thermal operations + * struct dm_thermal_ops - Driver model Thermal operations * * The uclass interface is implemented by all Thermal devices which use * driver model. @@ -22,19 +21,11 @@ struct dm_thermal_ops { /** * Get the current temperature * - * The device provided is the slave device. It's parent controller - * will be used to provide the communication. - * - * This must be called before doing any transfers with a Thermal slave. - * It will enable and initialize any Thermal hardware as necessary, - * and make sure that the SCK line is in the correct idle state. It is - * not allowed to claim the same bus for several slaves without - * releasing the bus in between. + * This must be called before doing any transfers with a Thermal device. + * It will enable and initialize any Thermal hardware as necessary. * * @dev: The Thermal device - * - * Returns: 0 if the bus was claimed successfully, or a negative value - * if it wasn't. + * @temp: pointer that returns the measured temperature */ int (*get_temp)(struct udevice *dev, int *temp); };