From: Alexandre d'Alton <alex@xxxxxxxxxxxxxx> Creates a name file in the sysfs directory, that seems to be needed for the libsensors library to work. Signed-off-by: Corentin Chary <corentincj@xxxxxxxxxx> --- eeepc-laptop.c | 8 ++++++++ 1 file changed, 8 insertions(+) --- a/drivers/misc/eeepc-laptop.c 2008-07-10 13:53:00.000000000 +0200 +++ b/drivers/misc/eeepc-laptop.c 2008-07-10 12:14:46.000000000 +0200 @@ -527,10 +527,18 @@ EEEPC_CREATE_SENSOR_ATTR(pwm1_enable, S_IRUGO | S_IWUSR, eeepc_get_fan_ctrl, eeepc_set_fan_ctrl); +static ssize_t +show_name(struct device *dev, struct device_attribute *attr, char *buf) +{ + return sprintf(buf, "fan\n"); +} +static SENSOR_DEVICE_ATTR(name, S_IRUGO, show_name, NULL); + static struct attribute *hwmon_attributes[] = { &sensor_dev_attr_fan1_pwm.dev_attr.attr, &sensor_dev_attr_fan1_input.dev_attr.attr, &sensor_dev_attr_pwm1_enable.dev_attr.attr, + &sensor_dev_attr_name.dev_attr.attr, NULL }; -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html