Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161104AbXBHXmw (ORCPT ); Thu, 8 Feb 2007 18:42:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1422709AbXBHXmw (ORCPT ); Thu, 8 Feb 2007 18:42:52 -0500 Received: from ns.suse.de ([195.135.220.2]:46390 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161104AbXBHXmv (ORCPT ); Thu, 8 Feb 2007 18:42:51 -0500 Date: Thu, 8 Feb 2007 15:41:27 -0800 From: Greg KH To: James Simmons Cc: Richard Purdie , LKML , akpm , Marcin Juszkiewicz Subject: Re: Git backlight subsystem tree Message-ID: <20070208234127.GA23475@kroah.com> References: <1170901826.5859.2.camel@localhost.localdomain> <1170957595.5849.11.camel@localhost.localdomain> <20070208212314.GA21165@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1882 Lines: 46 On Thu, Feb 08, 2007 at 09:54:21PM +0000, James Simmons wrote: > > > On Thu, Feb 08, 2007 at 06:32:02PM +0000, James Simmons wrote: > > > On Thu, 8 Feb 2007, Richard Purdie wrote: > > > > > > > On Thu, 2007-02-08 at 15:28 +0000, James Simmons wrote: > > > > > I have some patches that move the backlight away from using the class > > > > > stuff. The only problem is the patch requires all backlight devices > > > > > to be linked to a real struct device. Right now the acpi backligths are > > > > > not. > > > > > > > > Why would you want to do that? > > > > > > > > The whole point of having this is so that backlights appear as a > > > > standard interface under /sys/class/backlight. > > > > > > > > An example of why standardised interfaces are good would be someone > > > > writing an applet for a handheld to control the backlight brightness. > > > > With the class in place, the applet can easily work with any backlight. > > > > Without it, it has to be written for each backlight. > > > > > > > > So this is a very strong NAK but I'm curious why you'd want to do it... > > > > > > I CC Greg to explain. The backlight class didn't go away. The way it is > > > handled is different. > > > > Have a pointer to the patch so I can help explain better? > > > > As a short summary, 'struct class_device' is going away. Using a > > 'struct device' in its place is what the conversion should have just > > done, no functionality change otherwise. > > diff --git a/drivers/video/backlight/backlight.c b/drivers/video/backlight/backlight.c Looks good to me. And it makes the code simpler too :) thanks, greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/