Skip to contentSkip to conversation

whitespace in patches Q

lm-sensors Jim Cromie 2 participants 2 messages Jun 26, 2006 – Jun 27, 2006

lore
Share & tools
lore

Jim Cromie

author
#0 lore raw

I just went back over the patches on ticket #2076, looking for whitespace that might give heartburn to the reviewer; I found a few spots..

cat -TE hwmon-pc87360-sysfs-combo-callbacks.patch |less

In this chunk-frag, 2 leading tabs are conforming, but my editor adds spaces so that the code lines up inside the (open-paren). IMO thats an editor feature,
and Doc/CodingStyle doesnt really speak to it, but its not clear that its an
acceptable variation either.

(that the spaces are present in the current code is *something*, but they were put there by me, and dont really prove much)

static struct sensor_device_attribute_2 fan_min[] = {$ ^ISENSOR_ATTR_2(fan1_min, S_IWUSR | S_IRUGO,$
-^I^I show_fan_min, set_fan_min, FN_FAN_MIN, 0),$
+^I^I show_fan, set_fan_min, FN_FAN_MIN, 0),$
^ISENSOR_ATTR_2(fan2_min, S_IWUSR | S_IRUGO,$
-^I^I show_fan_min, set_fan_min, FN_FAN_MIN, 1),$
+^I^I show_fan, set_fan_min, FN_FAN_MIN, 1),$
^ISENSOR_ATTR_2(fan3_min, S_IWUSR | S_IRUGO,$
-^I^I show_fan_min, set_fan_min, FN_FAN_MIN, 2),$
+^I^I show_fan, set_fan_min, FN_FAN_MIN, 2),$
};$

#1 lore raw

Hi Jim,

Quoted 14 lines

I just went back over the patches on ticket #2076, looking for whitespace that might give heartburn to the reviewer; I found a few spots..

cat -TE hwmon-pc87360-sysfs-combo-callbacks.patch |less

In this chunk-frag, 2 leading tabs are conforming, but my editor adds spaces so that the code lines up inside the (open-paren). IMO thats an editor feature, and Doc/CodingStyle doesnt really speak to it, but its not clear that its an acceptable variation either.

(that the spaces are present in the current code is *something*, but they were put there by me, and dont really prove much)

Quoted 11 lines

static struct sensor_device_attribute_2 fan_min[] = {$ ^ISENSOR_ATTR_2(fan1_min, S_IWUSR | S_IRUGO,$
-^I^I show_fan_min, set_fan_min, FN_FAN_MIN, 0),$
+^I^I show_fan, set_fan_min, FN_FAN_MIN, 0),$
^ISENSOR_ATTR_2(fan2_min, S_IWUSR | S_IRUGO,$
-^I^I show_fan_min, set_fan_min, FN_FAN_MIN, 1),$
+^I^I show_fan, set_fan_min, FN_FAN_MIN, 1),$
^ISENSOR_ATTR_2(fan3_min, S_IWUSR | S_IRUGO,$
-^I^I show_fan_min, set_fan_min, FN_FAN_MIN, 2),$
+^I^I show_fan, set_fan_min, FN_FAN_MIN, 2),$
};$

Yes this is an acceptable variation, I have no problem with that.

Signature · 1 line
Jean Delvare