Skip to contentSkip to conversation

lm75: some optimisations

PATCH In review Shubhrajyoti D 4 participants 5 messages Sep 9, 2010 – Sep 13, 2010 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lm75: some optimisations

- updating with Guenter's comments

---
 drivers/hwmon/lm75.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/hwmon/lm75.c +3 -3
index ab5b87a..028f961 100644
@@ -134,7 +134,7 @@ static const struct attribute_group lm75_group = {
 
 /* device probe and removal */
 
-static int
+static int __devinit
 lm75_probe(struct i2c_client *client, const struct i2c_device_id *id)
 {
 	struct lm75_data *data;
@@ -196,7 +196,7 @@ exit_free:
 	return status;
 }
 
-static int lm75_remove(struct i2c_client *client)
+static int __devexit lm75_remove(struct i2c_client *client)
 {
 	struct lm75_data *data = i2c_get_clientdata(client);
 
@@ -325,7 +325,7 @@ static struct i2c_driver lm75_driver = {
 		.pm	= LM75_DEV_PM_OPS,
 	},
 	.probe		= lm75_probe,
-	.remove		= lm75_remove,
+	.remove		=  __devexit_p(lm75_remove),
 	.id_table	= lm75_ids,
 	.detect		= lm75_detect,
 	.address_list	= normal_i2c,
Signature · 7 lines
1.7.0.4


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

General comments:

- Please select a more descriptive headline, such as
hwmon: lm75: Add __devinit and __devexit section initializers

- It is useful to provide the patch version to reduce confusion and enable version tracking.
Example:
[PATCH v3] hwmon: lm75: Add __devinit and __devexit section initializers

- Please cc [email protected] and Jean Delvare <[email protected]>.

Quoted 2 lines · Shubhrajyoti D

- updating with Guenter's comments

This and other patch version related comments should be below the --- line. Otherwise, it will end up in the commit log, which isn't really useful.

Quoted 1 line

Assuming you make above changes and resubmit, feel free to add

Guenter

Quoted 43 lines
---
 drivers/hwmon/lm75.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/hwmon/lm75.c +3 -3
index ab5b87a..028f961 100644
@@ -134,7 +134,7 @@ static const struct attribute_group lm75_group = {
 
 /* device probe and removal */
 
-static int
+static int __devinit
 lm75_probe(struct i2c_client *client, const struct i2c_device_id *id)
 {
 	struct lm75_data *data;
@@ -196,7 +196,7 @@ exit_free:
 	return status;
 }
 
-static int lm75_remove(struct i2c_client *client)
+static int __devexit lm75_remove(struct i2c_client *client)
 {
 	struct lm75_data *data = i2c_get_clientdata(client);
 
@@ -325,7 +325,7 @@ static struct i2c_driver lm75_driver = {
 		.pm	= LM75_DEV_PM_OPS,
 	},
 	.probe		= lm75_probe,
-	.remove		= lm75_remove,
+	.remove		=  __devexit_p(lm75_remove),
 	.id_table	= lm75_ids,
 	.detect		= lm75_detect,
 	.address_list	= normal_i2c,
Signature · 7 lines
1.7.0.4


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

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

#2 lore raw
Quoted 11 lines · Guenter Roeck

General comments:

- Please select a more descriptive headline, such as
hwmon: lm75: Add __devinit and __devexit section initializers

- It is useful to provide the patch version to reduce confusion and enable version tracking.
Example:
[PATCH v3] hwmon: lm75: Add __devinit and __devexit section initializers

- Please cc [email protected] and Jean Delvare <[email protected]>.

Please do NOT CC [email protected]. We have a mailing list dedicated to hardware monitoring, there's no point to add to the 200,000 messages (literally) LKML gets every year. The more messages a list gets, the fewer readers it has.

As for CC'ing me, it doesn't hurt, but doesn't make a difference either, as I read the lm-sensors list carefully anyway.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#3 lore raw
Quoted 4 lines · Jean Delvare

Please do NOT CC [email protected]. We have a mailing list dedicated to hardware monitoring, there's no point to add to the 200,000 messages (literally) LKML gets every year. The more messages a list gets, the fewer readers it has.

Any way to represent this in the MAINTAINERS file, so that people who come along in the fugure know that lm-sensors gets special handling in that regard?

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

#4 lore raw
Quoted 9 lines · On Mon, 13 Sep 2010 00:10:00 -0400, [email protected] wrote:
Quoted 4 lines · Jean Delvare

Please do NOT CC [email protected]. We have a mailing list dedicated to hardware monitoring, there's no point to add to the 200,000 messages (literally) LKML gets every year. The more messages a list gets, the fewer readers it has.

Any way to represent this in the MAINTAINERS file, so that people who come along in the fugure know that lm-sensors gets special handling in that regard?

Unfortunately not. The only way would be to convince the maintainers of scripts/get_maintainer.pl to NOT unconditionally add LKML to its output.

Signature · 6 lines
Jean Delvare

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