Skip to contentSkip to conversation

hwmon: (hwmon) Fix multi-line comments

PATCH Superseded Guenter Roeck 3 participants 3 messages Jan 19, 2012 – Jan 20, 2012 Hardware monitoring

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Guenter Roeck

author maintainer
#0 lore raw

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

---
 drivers/hwmon/hwmon.c |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)
drivers/hwmon/hwmon.c +12 -12
index b58a0ff..c0b05ca 100644
@@ -1,14 +1,14 @@
 /*
-    hwmon.c - part of lm_sensors, Linux kernel modules for hardware monitoring
-
-    This file defines the sysfs class "hwmon", for use by sensors drivers.
-
-    Copyright (C) 2005 Mark M. Hoffman <[email protected]>
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; version 2 of the License.
-*/
+ * hwmon.c - part of lm_sensors, Linux kernel modules for hardware monitoring
+ *
+ * This file defines the sysfs class "hwmon", for use by sensors drivers.
+ *
+ * Copyright (C) 2005 Mark M. Hoffman <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ */
 
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
@@ -29,7 +29,7 @@ static struct class *hwmon_class;
 
 static DEFINE_IDA(hwmon_ida);
 
-/**
+/*
  * hwmon_device_register - register w/ hwmon
  * @dev: the device to register
  *
@@ -57,7 +57,7 @@ struct device *hwmon_device_register(struct device *dev)
 }
 EXPORT_SYMBOL_GPL(hwmon_device_register);
 
-/**
+/*
  * hwmon_device_unregister - removes the previously registered class device
  *
  * @dev: the class device to destroy
Signature · 7 lines
1.7.5.4


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

Hi Guenter,

Quoted 20 lines · Guenter Roeck
---
 drivers/hwmon/hwmon.c |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)
drivers/hwmon/hwmon.c +1 -1
index b58a0ff..c0b05ca 100644
(...)
@@ -29,7 +29,7 @@ static struct class *hwmon_class;
 
 static DEFINE_IDA(hwmon_ida);
 
-/**
+/*
  * hwmon_device_register - register w/ hwmon
  * @dev: the device to register
  *

drivers/hwmon/hwmon.c struct device *hwmon_device_register(struct device *dev) · line 63

Quoted 8 lines
drivers/hwmon/hwmon.c +1 -1
@@ -57,7 +57,7 @@ struct device *hwmon_device_register(struct device *dev)
 }
 EXPORT_SYMBOL_GPL(hwmon_device_register);
 
-/**
+/*
  * hwmon_device_unregister - removes the previously registered class device
  *
  * @dev: the class device to destroy

These are markers for DocBook documentation, you shouldn't remove them. As a matter of fact checkpatch doesn't complain about them.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#2 lore raw
In reply to Guenter Roeck
Quoted 26 lines · Jean Delvare

Hi Guenter,

Quoted 23 lines · Guenter Roeck
---
 drivers/hwmon/hwmon.c |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)
drivers/hwmon/hwmon.c +1 -1
index b58a0ff..c0b05ca 100644
(...)
@@ -29,7 +29,7 @@ static struct class *hwmon_class;
 
 static DEFINE_IDA(hwmon_ida);
 
-/**
+/*
  * hwmon_device_register - register w/ hwmon
  * @dev: the device to register
  *
@@ -57,7 +57,7 @@ struct device *hwmon_device_register(struct device *dev)
 }
 EXPORT_SYMBOL_GPL(hwmon_device_register);
 
Quoted 9 lines

drivers/hwmon/hwmon.c struct device *hwmon_device_register(struct device *dev) · line 63

Quoted 5 lines
drivers/hwmon/hwmon.c +1 -1
-/**
+/*
  * hwmon_device_unregister - removes the previously registered class device
  *
  * @dev: the class device to destroy

These are markers for DocBook documentation, you shouldn't remove them. As a matter of fact checkpatch doesn't complain about them.

No problem, will do.

Guenter

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