Skip to contentSkip to conversation

thermal: Fix comments

PATCH New Fabio Estevam 3 participants 3 messages Jul 14, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 thermal: Fix comments

From: Fabio Estevam <[email protected]>

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

---
 include/thermal.h | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)
include/thermal.h +4 -12
index 5d6101b..b197c0a 100644
@@ -13,7 +13,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 +22,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);
 };
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 thermal: Fix comments

Quoted 7 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

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

Tom, this would be a good patch to go in 2015.07 release, simple and trivial.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#2 lore raw

PATCH 1/1 thermal: Fix comments

Quoted 11 lines · Otavio Salvador
Quoted 7 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

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

Quoted 11 lines

Tom, this would be a good patch to go in 2015.07 release, simple and trivial.

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot