1
0
Fork 0

thermal: Fix comments

It seems that many comments were copied from the I2C uclass, so adjust
the comments for the thermal class.

Reported-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Acked-by: Simon Glass <sjg@chromium.org>
utp
Fabio Estevam 2015-07-13 22:01:52 -03:00 committed by Stefano Babic
parent 0b7f7c339c
commit 6918f974cf
1 changed files with 4 additions and 12 deletions

View File

@ -13,7 +13,7 @@
int thermal_get_temp(struct udevice *dev, int *temp); 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 * The uclass interface is implemented by all Thermal devices which use
* driver model. * driver model.
@ -22,19 +22,11 @@ struct dm_thermal_ops {
/** /**
* Get the current temperature * Get the current temperature
* *
* The device provided is the slave device. It's parent controller * This must be called before doing any transfers with a Thermal device.
* will be used to provide the communication. * It will enable and initialize any Thermal hardware as necessary.
*
* 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.
* *
* @dev: The Thermal device * @dev: The Thermal device
* * @temp: pointer that returns the measured temperature
* Returns: 0 if the bus was claimed successfully, or a negative value
* if it wasn't.
*/ */
int (*get_temp)(struct udevice *dev, int *temp); int (*get_temp)(struct udevice *dev, int *temp);
}; };