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