diff for duplicates of <461F1620.1010808@boichat.ch> diff --git a/a/1.txt b/N1/1.txt index 288d0c9..d8e4ee3 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -318,7 +318,8 @@ index f7b59fc..531bc9a 100644 + int ret; + char newkey[5]; + u8 buffer[17]; -+ struct sensor_device_attribute_2 *sensor_attr + to_sensor_dev_attr_2(attr); ++ struct sensor_device_attribute_2 *sensor_attr = ++ to_sensor_dev_attr_2(attr); + + newkey[0] = FAN_POSITION[0]; + newkey[1] = '0' + sensor_attr->index; @@ -356,7 +357,8 @@ index f7b59fc..531bc9a 100644 + NULL +}; + -+static const struct attribute_group accelerometer_attributes_group + { .attrs = accelerometer_attributes }; ++static const struct attribute_group accelerometer_attributes_group = ++ { .attrs = accelerometer_attributes }; + static DEVICE_ATTR(light, 0444, applesmc_light_show, NULL); @@ -486,7 +488,8 @@ index f7b59fc..531bc9a 100644 + NULL }; -+static const struct attribute_group temperature_attributes_group + { .attrs = temperature_attributes }; ++static const struct attribute_group temperature_attributes_group = ++ { .attrs = temperature_attributes }; + /* Module stuff */ @@ -544,7 +547,7 @@ index f7b59fc..531bc9a 100644 for (i = 0; temperature_sensors_sets[applesmc_temperature_set][i] != NULL; i++) { -+ if (temperature_attributes[i] = NULL) { ++ if (temperature_attributes[i] == NULL) { + printk(KERN_ERR "applesmc: More temperature sensors " + "in temperature_sensors_sets (at least %i)" + "than available sysfs files in " @@ -617,9 +620,3 @@ index f7b59fc..531bc9a 100644 platform_device_unregister(pdev); platform_driver_unregister(&applesmc_driver); release_region(APPLESMC_DATA_PORT, APPLESMC_NR_PORTS); - - -_______________________________________________ -lm-sensors mailing list -lm-sensors@lm-sensors.org -http://lists.lm-sensors.org/mailman/listinfo/lm-sensors diff --git a/a/content_digest b/N1/content_digest index adb4787..39141f1 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,8 +1,8 @@ "ref\045F7C083.7090504@boichat.ch\0" "ref\020070411142556.16cd1e44@hyperion.delvare\0" "From\0Nicolas Boichat <nicolas@boichat.ch>\0" - "Subject\0[lm-sensors] [PATCH 1/2] Apple SMC driver - standardize and\0" - "Date\0Fri, 13 Apr 2007 05:33:20 +0000\0" + "Subject\0[PATCH 1/2] Apple SMC driver - standardize and sanitize sysfs tree + minor features addition\0" + "Date\0Fri, 13 Apr 2007 13:33:20 +0800\0" "To\0Jean Delvare <khali@linux-fr.org>" " Andrew Morton <akpm@linux-foundation.org>\0" "Cc\0linux-kernel@vger.kernel.org" @@ -334,7 +334,8 @@ "+\tint ret;\n" "+\tchar newkey[5];\n" "+\tu8 buffer[17];\n" - "+\tstruct sensor_device_attribute_2 *sensor_attr +\t\t\t\t\t\tto_sensor_dev_attr_2(attr);\n" + "+\tstruct sensor_device_attribute_2 *sensor_attr =\n" + "+\t\t\t\t\t\tto_sensor_dev_attr_2(attr);\n" "+\n" "+\tnewkey[0] = FAN_POSITION[0];\n" "+\tnewkey[1] = '0' + sensor_attr->index;\n" @@ -372,7 +373,8 @@ "+\tNULL\n" "+};\n" "+\n" - "+static const struct attribute_group accelerometer_attributes_group +\t{ .attrs = accelerometer_attributes };\n" + "+static const struct attribute_group accelerometer_attributes_group =\n" + "+\t{ .attrs = accelerometer_attributes };\n" "+\n" " static DEVICE_ATTR(light, 0444, applesmc_light_show, NULL);\n" " \n" @@ -502,7 +504,8 @@ "+\tNULL\n" " };\n" " \n" - "+static const struct attribute_group temperature_attributes_group +\t{ .attrs = temperature_attributes };\n" + "+static const struct attribute_group temperature_attributes_group =\n" + "+\t{ .attrs = temperature_attributes };\n" "+\n" " /* Module stuff */\n" " \n" @@ -560,7 +563,7 @@ " \tfor (i = 0;\n" " \t temperature_sensors_sets[applesmc_temperature_set][i] != NULL;\n" " \t i++) {\n" - "+\t\tif (temperature_attributes[i] = NULL) {\n" + "+\t\tif (temperature_attributes[i] == NULL) {\n" "+\t\t\tprintk(KERN_ERR \"applesmc: More temperature sensors \"\n" "+\t\t\t\t\"in temperature_sensors_sets (at least %i)\"\n" "+\t\t\t\t\"than available sysfs files in \"\n" @@ -632,12 +635,6 @@ "+\tsysfs_remove_group(&pdev->dev.kobj, &fan_attribute_groups[1]);\n" " \tplatform_device_unregister(pdev);\n" " \tplatform_driver_unregister(&applesmc_driver);\n" - " \trelease_region(APPLESMC_DATA_PORT, APPLESMC_NR_PORTS);\n" - "\n" - "\n" - "_______________________________________________\n" - "lm-sensors mailing list\n" - "lm-sensors@lm-sensors.org\n" - http://lists.lm-sensors.org/mailman/listinfo/lm-sensors + " \trelease_region(APPLESMC_DATA_PORT, APPLESMC_NR_PORTS);" -a86c25128ec6ad864e550d66e2bb8632b0fb954c134f1a07c2a98e408ce331d4 +e871b52b6cddfebbca2c59d0046a3b7d335f0e1b718f213652352f4472224c55
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.