From patchwork Mon Apr 5 17:36:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?w4PigLByaWMgUGllbA==?= X-Patchwork-Id: 90678 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o35KROFe013298 for ; Mon, 5 Apr 2010 20:27:59 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1F4839ECE7; Mon, 5 Apr 2010 11:00:10 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 05 Apr 2010 20:28:00 +0000 (UTC) X-Greylist: delayed 1385 seconds by postgrey-1.31 at gabe; Mon, 05 Apr 2010 11:00:07 PDT Received: from mailservice.tudelft.nl (mailservice.tudelft.nl [130.161.131.5]) by gabe.freedesktop.org (Postfix) with ESMTP id C36519E96F for ; Mon, 5 Apr 2010 11:00:07 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by amavis (Postfix) with ESMTP id 1A7E4108C026 for ; Mon, 5 Apr 2010 19:37:01 +0200 (CEST) X-Virus-Scanned: amavisd-new at tudelft.nl X-Spam-Flag: NO X-Spam-Score: -12.589 X-Spam-Level: X-Spam-Status: No, score=-12.589 tagged_above=-99 required=5 tests=[BAYES_00=-2.599, PROLO_LEO3=0.01, TUD_REL01=-10] autolearn=ham Received: from mailservice.tudelft.nl ([130.161.131.74]) by localhost (tudelft.nl [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id extvOZri4OyM for ; Mon, 5 Apr 2010 19:37:00 +0200 (CEST) Received: from smtp-a.tudelft.nl (smtp-a.tudelft.nl [130.161.180.7]) by mx3.tudelft.nl (Postfix) with ESMTP id 59E6D108C012 for ; Mon, 5 Apr 2010 19:37:00 +0200 (CEST) Received: from [192.168.10.104] (63-103-dsl.ipact.nl [84.35.103.63]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-a.tudelft.nl (Postfix) with ESMTP id 3938DB3A63 for ; Mon, 5 Apr 2010 19:37:00 +0200 (CEST) Message-ID: <4BBA1FBB.3040800@tudelft.nl> Date: Mon, 05 Apr 2010 19:36:59 +0200 From: =?UTF-8?B?w4lyaWMgUGllbA==?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090319 Mandriva/2.0.0.21-1mdv2009.1 (2009.1) Thunderbird/2.0.0.21 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: "intel-gfx@lists.freedesktop.org" X-Enigmail-Version: 1.0.1 Subject: [Intel-gfx] [PATCH] psb kernel: fix compilation with 2.6.34-rc3 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org --- intel_lvds.c.bak 2010-04-02 00:26:45.489008304 +0200 +++ intel_lvds.c 2010-04-02 00:40:51.530267983 +0200 @@ -801,7 +801,14 @@ if ((blc_type == BLC_I2C_TYPE) || (blc_type == BLC_PWM_TYPE)){ /* add /sys/class/backlight interface as standard */ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34) + struct backlight_properties props; + memset(&props, 0, sizeof(struct backlight_properties)); + props.max_brightness = BRIGHTNESS_MAX_LEVEL; + psbbl_device = backlight_device_register("psblvds", &dev->pdev->dev, dev, &psbbl_ops, &props); +#else psbbl_device = backlight_device_register("psblvds", &dev->pdev->dev, dev, &psbbl_ops); +#endif if (psbbl_device){ #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,20) down(&psbbl_device->sem);