From patchwork Sat Dec 26 19:24:31 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Corbacho X-Patchwork-Id: 69797 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id nBQJOaVG020134 for ; Sat, 26 Dec 2009 19:24:36 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753745AbZLZTYf (ORCPT ); Sat, 26 Dec 2009 14:24:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753849AbZLZTYf (ORCPT ); Sat, 26 Dec 2009 14:24:35 -0500 Received: from ey-out-2122.google.com ([74.125.78.26]:6788 "EHLO ey-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753831AbZLZTYe (ORCPT ); Sat, 26 Dec 2009 14:24:34 -0500 Received: by ey-out-2122.google.com with SMTP id 25so1035625eya.19 for ; Sat, 26 Dec 2009 11:24:33 -0800 (PST) Received: by 10.213.24.25 with SMTP id t25mr16959928ebb.98.1261855473032; Sat, 26 Dec 2009 11:24:33 -0800 (PST) Received: from pegasus.localnet (bb-87-81-255-5.ukonline.co.uk [87.81.255.5]) by mx.google.com with ESMTPS id 15sm7112586ewy.12.2009.12.26.11.24.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 26 Dec 2009 11:24:32 -0800 (PST) From: Carlos Corbacho To: Linux ACPI Subject: acer-wmi: Respect current backlight level when loading Date: Sat, 26 Dec 2009 19:24:31 +0000 User-Agent: KMail/1.12.4 (Linux/2.6.31.5; KDE/4.3.4; x86_64; ; ) Cc: lenb@kernel.org MIME-Version: 1.0 Message-Id: <200912261924.31527.carlos@strangeworlds.co.uk> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index 07d14df..226b3e9 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c @@ -934,7 +934,7 @@ static int __devinit acer_backlight_init(struct device *dev) acer_backlight_device = bd; bd->props.power = FB_BLANK_UNBLANK; - bd->props.brightness = max_brightness; + bd->props.brightness = read_brightness(bd); bd->props.max_brightness = max_brightness; backlight_update_status(bd); return 0;