From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Subject: Re: [RFC] add class/video to fb drivers - Take 2 Date: Wed, 20 Aug 2003 14:33:31 -0700 Sender: linux-kernel-owner@vger.kernel.org Message-ID: <20030820213331.GA4894@kroah.com> References: <20030820212626.GA4854@kroah.com> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: List-Id: Cc: Linux Kernel Mailing List , Linux Fbdev development list On Wed, Aug 20, 2003 at 10:28:28PM +0100, James Simmons wrote: > > > Well, it's not "ideal" but it will do for 2.6 to use this patch. If you > > look at the tty core, it's the same way that currently works. > > > > Ideally in 2.7 I'd like to convert to have all fb drivers create the > > fb_info structure dynamically, but that's much to big of a change to do > > this late in the 2.6 development cycle. > > What is the advantage of creating every fb_info dynamically? Then we can add a struct class_device into fb_info, which will allow us to export sysfs attributes for each fb_info device to userspace. It will provide the proper lifetime rules for such structures, and allow the individual drivers a place within sysfs to export different things they might want to export. Any /proc files you currently have could then be removed. For an example of what needs to be done, see the recent v4l core changes that were just introduced into the kernel tree. Again, this is a 2.7 thing (which could easily be backported to 2.6.late afterwards), nothing I want to attempt to do at this time. thanks, greg k-h