From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Subject: Re: fbdev sysfs support. Date: Fri, 6 Feb 2004 17:23:13 -0800 Sender: linux-kernel-owner@vger.kernel.org Message-ID: <20040207012313.GF4492@kroah.com> References: <20040207005954.GB4492@kroah.com> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: List-Id: Cc: Linus Torvalds , Linux Fbdev development list , Linux Kernel Mailing List On Sat, Feb 07, 2004 at 01:01:35AM +0000, James Simmons wrote: > +static ssize_t show_dev(struct class_device *class_dev, char *buf) > +{ > + struct fb_info *info = to_fb_info(class_dev); > + > + return sprintf(buf, "%u:%u\n", FB_MAJOR, info->node); > +} Another ick. Please use the already present function for this, print_dev_t(). thanks, greg k-h