Skip to contentSkip to conversation

hwmon: (lm75) Fix multi-line comments

PATCH Superseded Guenter Roeck 1 participant 1 message Jan 19, 2012 Hardware monitoring

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Guenter Roeck

author maintainer
#0 lore raw

PATCH 34/82 hwmon: (lm75) Fix multi-line comments

---
 drivers/hwmon/lm75.c |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)
drivers/hwmon/lm75.c +12 -7
index b3311b1..8510e0c 100644
@@ -73,10 +73,12 @@ struct lm75_data {
 	u8			orig_conf;
 	char			valid;		/* !=0 if registers are valid */
 	unsigned long		last_updated;	/* In jiffies */
-	u16			temp[3];	/* Register values,
-						   0 = input
-						   1 = max
-						   2 = hyst */
+	u16			temp[3];	/*
+						 * Register values,
+						 * 0 = input
+						 * 1 = max
+						 * 2 = hyst
+						 */
 };
 
 static int lm75_read_value(struct i2c_client *client, u8 reg);
@@ -163,7 +165,8 @@ lm75_probe(struct i2c_client *client, const struct i2c_device_id *id)
 	i2c_set_clientdata(client, data);
 	mutex_init(&data->update_lock);
 
-	/* Set to LM75 resolution (9 bits, 1/2 degree C) and range.
+	/*
+	 * Set to LM75 resolution (9 bits, 1/2 degree C) and range.
 	 * Then tweak to be more precise when appropriate.
 	 */
 	set_mask = 0;
@@ -285,8 +288,10 @@ static int lm75_detect(struct i2c_client *new_client,
 
 	/* First check for LM75A */
 	if (i2c_smbus_read_byte_data(new_client, 7) = LM75A_ID) {
-		/* LM75A returns 0xff on unused registers so
-		   just to be sure we check for that too. */
+		/*
+		 * LM75A returns 0xff on unused registers so
+		 * just to be sure we check for that too.
+		 */
 		if (i2c_smbus_read_byte_data(new_client, 4) != 0xff
 		 || i2c_smbus_read_byte_data(new_client, 5) != 0xff
 		 || i2c_smbus_read_byte_data(new_client, 6) != 0xff)
Signature · 7 lines
1.7.5.4


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors