[PATCH 2.6.12-rc4 3/3] (dynamic sysfs callbacks) device_attribute

Greg KH greg at kroah.com
Wed May 11 19:07:50 CEST 2005


On Wed, May 11, 2005 at 03:58:35AM -0400, Yani Ioannou wrote:
> -static ssize_t show_in(struct device *dev, char *buf, int nr)
> +static ssize_t show_in(struct device *dev, char *buf, void *private)
>  {
> +	int nr = *((int*)private);

What's wrong with a simple:
	int nr = (int)private;

thanks,

greg k-h



More information about the lm-sensors mailing list