Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1cfc97f21f6ab91df8d5617fcbf758322fdd238b
Commit:     1cfc97f21f6ab91df8d5617fcbf758322fdd238b
Parent:     249040dc7fd391186f420fe23a9b59d357103cac
Author:     Richard Purdie <[EMAIL PROTECTED]>
AuthorDate: Fri Feb 9 00:34:52 2007 +0000
Committer:  Richard Purdie <[EMAIL PROTECTED]>
CommitDate: Tue Feb 20 08:38:45 2007 +0000

    backlight: Remove uneeded nvidia set_power calls
    
    nvidia_bl_set_power isn't needed since the backlight class handles
    this by receiving fb events itself and calling update_status so
    remove it.
    
    Signed-off-by: Richard Purdie <[EMAIL PROTECTED]>
---
 drivers/video/nvidia/nv_backlight.c |   12 ------------
 drivers/video/nvidia/nv_proto.h     |    2 --
 drivers/video/nvidia/nvidia.c       |    2 --
 3 files changed, 0 insertions(+), 16 deletions(-)

diff --git a/drivers/video/nvidia/nv_backlight.c 
b/drivers/video/nvidia/nv_backlight.c
index f5e42d0..695b6bf 100644
--- a/drivers/video/nvidia/nv_backlight.c
+++ b/drivers/video/nvidia/nv_backlight.c
@@ -109,18 +109,6 @@ static struct backlight_properties nvidia_bl_data = {
        .max_brightness = (FB_BACKLIGHT_LEVELS - 1),
 };
 
-void nvidia_bl_set_power(struct fb_info *info, int power)
-{
-       mutex_lock(&info->bl_mutex);
-
-       if (info->bl_dev) {
-               info->bl_dev->props->power = power;
-               __nvidia_bl_update_status(info->bl_dev);
-       }
-
-       mutex_unlock(&info->bl_mutex);
-}
-
 void nvidia_bl_init(struct nvidia_par *par)
 {
        struct fb_info *info = pci_get_drvdata(par->pci_dev);
diff --git a/drivers/video/nvidia/nv_proto.h b/drivers/video/nvidia/nv_proto.h
index 43058d0..ff5c410 100644
--- a/drivers/video/nvidia/nv_proto.h
+++ b/drivers/video/nvidia/nv_proto.h
@@ -67,11 +67,9 @@ extern int nvidiafb_sync(struct fb_info *info);
 #ifdef CONFIG_FB_NVIDIA_BACKLIGHT
 extern void nvidia_bl_init(struct nvidia_par *par);
 extern void nvidia_bl_exit(struct nvidia_par *par);
-extern void nvidia_bl_set_power(struct fb_info *info, int power);
 #else
 static inline void nvidia_bl_init(struct nvidia_par *par) {}
 static inline void nvidia_bl_exit(struct nvidia_par *par) {}
-static inline void nvidia_bl_set_power(struct fb_info *info, int power) {}
 #endif
 
 #endif                         /* __NV_PROTO_H__ */
diff --git a/drivers/video/nvidia/nvidia.c b/drivers/video/nvidia/nvidia.c
index 8e5b484..64f5911 100644
--- a/drivers/video/nvidia/nvidia.c
+++ b/drivers/video/nvidia/nvidia.c
@@ -938,8 +938,6 @@ static int nvidiafb_blank(int blank, struct fb_info *info)
        NVWriteSeq(par, 0x01, tmp);
        NVWriteCrtc(par, 0x1a, vesa);
 
-       nvidia_bl_set_power(info, blank);
-
        NVTRACE_LEAVE();
 
        return 0;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to