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

Greg KH
2005-05-11T17:09:27Z

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