-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 259676 b: refs/heads/master c: 6a7afe3 h: refs/heads/master v: v3
- Loading branch information
Alan Cox
authored and
Greg Kroah-Hartman
committed
Jul 5, 2011
1 parent
0c3a4c1
commit 3a0d601
Showing
11 changed files
with
446 additions
and
320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 92367fe1bca91efa7f689127ba45080d4303d609 | ||
refs/heads/master: 6a7afe3acc4bfa54b1433b7f6b5b467ec05ee15b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* GMA500 Backlight Interface | ||
* | ||
* Copyright (c) 2009-2011, Intel Corporation. | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms and conditions of the GNU General Public License, | ||
* version 2, as published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
* more details. | ||
* | ||
* You should have received a copy of the GNU General Public License along with | ||
* this program; if not, write to the Free Software Foundation, Inc., | ||
* 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
* | ||
* Authors: Eric Knopp | ||
* | ||
*/ | ||
|
||
#include "psb_drv.h" | ||
#include "psb_intel_reg.h" | ||
#include "psb_intel_drv.h" | ||
#include "psb_intel_bios.h" | ||
#include "psb_powermgmt.h" | ||
|
||
int gma_backlight_init(struct drm_device *dev) | ||
{ | ||
#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE | ||
struct drm_psb_private *dev_priv = dev->dev_private; | ||
return dev_priv->ops->backlight_init(dev); | ||
#endif | ||
} | ||
|
||
void gma_backlight_exit(struct drm_device *dev) | ||
{ | ||
#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE | ||
struct drm_psb_private *dev_priv = dev->dev_private; | ||
dev_priv->backlight_device->props.brightness = 0; | ||
backlight_update_status(dev_priv->backlight_device); | ||
if (dev_priv->backlight_device) | ||
backlight_device_unregister(dev_priv->backlight_device); | ||
#endif | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.