> Attached is patch against 2.6.0-test1 that adds type_name to all in-tree
> sensors; it sets it to the same values as corr. 2.4 senors and (in one case)
> changes client name to match that of 2.4.
Well, it certainly doesn't with the lm85.c :-)
Hint - names are in lib/chips.h in sensors package :-)
Although, I will be working over lm85.c in the next week or so.
> +static const char *type_name = "";
> +static ssize_t show_type_name(struct device *dev, char *buf)
> +{
> + return sprintf(buf, "%s\n", type_name);
> +}
> +static DEVICE_ATTR(type_name, S_IRUGO, show_type_name, NULL);
> - const char *type_name = "";
> + device_create_file(&new_client->dev, &dev_attr_type_name);
Margit
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Thu Jul 31 2003 - 22:00:31 EST