Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758585Ab1FVTk7 (ORCPT ); Wed, 22 Jun 2011 15:40:59 -0400 Received: from cavan.codon.org.uk ([93.93.128.6]:42043 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758211Ab1FVTk6 (ORCPT ); Wed, 22 Jun 2011 15:40:58 -0400 Date: Wed, 22 Jun 2011 20:40:49 +0100 From: Matthew Garrett To: Ike Panhc Cc: linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, corentin.chary@gmail.com, Richard Purdie Subject: Re: [PATCH 3/3] ideapad: add backlight driver Message-ID: <20110622194049.GB8861@srcf.ucam.org> References: <1308729781-2590-1-git-send-email-ike.pan@canonical.com> <1308730058-2703-1-git-send-email-ike.pan@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1308730058-2703-1-git-send-email-ike.pan@canonical.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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: 1082 Lines: 32 On Wed, Jun 22, 2011 at 04:07:38PM +0800, Ike Panhc wrote: > -static void ideapad_sync_rfk_state(struct acpi_device *adevice) > +static void ideapad_sync_rfk_state(struct ideapad_private *priv) > { This should be a separate patch. > -static void __devexit ideapad_unregister_rfkill(struct acpi_device *adevice, > - int dev) > +static void ideapad_unregister_rfkill(struct acpi_device *adevice, int dev) This also seems unrelated. > +static int ideapad_backlight_get_brightness(struct backlight_device *blightdev) > +{ > + unsigned long now; > + > + if (read_ec_data(ideapad_handle, 0x12, &now)) > + return -EAGAIN; Description says you're using commands on the VPC2004 device, but it looks like you're just poking the embedded controller? Are you sure the EC offsets are stable? -- 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/