Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752892AbZGNBxb (ORCPT ); Mon, 13 Jul 2009 21:53:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751578AbZGNBxa (ORCPT ); Mon, 13 Jul 2009 21:53:30 -0400 Received: from cavan.codon.org.uk ([93.93.128.6]:60004 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751275AbZGNBxa (ORCPT ); Mon, 13 Jul 2009 21:53:30 -0400 Date: Tue, 14 Jul 2009 02:53:26 +0100 From: Matthew Garrett To: ykzhao Cc: "linux-kernel@vger.kernel.org" , "linux-acpi@vger.kernel.org" , "rpurdie@rpsys.net" , "lenb@kernel.org" , "Zhang, Rui" , "corentincj@iksaif.net" Subject: Re: [PATCH 1/3] backlight: Allow drivers to update the core, and generate events on changes Message-ID: <20090714015326.GA9044@srcf.ucam.org> References: <1247517685-7719-1-git-send-email-mjg@redhat.com> <1247533128.3704.9.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1247533128.3704.9.camel@localhost.localdomain> User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: mjg59@cavan.codon.org.uk X-SA-Exim-Scanned: No (on cavan.codon.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 766 Lines: 21 On Tue, Jul 14, 2009 at 08:58:48AM +0800, ykzhao wrote: > It will be better to send the event to user space only when the > brightness is updated successfully. That guarantees that we have to read back the brightness, which may be expensive on some hardware. > It seems that the acpi video driver will send the ACPI event to user > space when updating the brightness. > Is it necessary to send the udev-event again? Yes. There's no reason to special-case the ACPI driver. -- Matthew Garrett | mjg59@srcf.ucam.org -- 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/