Commit 1cfc97f2 authored by Richard Purdie's avatar Richard Purdie

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: default avatarRichard Purdie <rpurdie@rpsys.net>
parent 249040dc
...@@ -109,18 +109,6 @@ static struct backlight_properties nvidia_bl_data = { ...@@ -109,18 +109,6 @@ static struct backlight_properties nvidia_bl_data = {
.max_brightness = (FB_BACKLIGHT_LEVELS - 1), .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) void nvidia_bl_init(struct nvidia_par *par)
{ {
struct fb_info *info = pci_get_drvdata(par->pci_dev); struct fb_info *info = pci_get_drvdata(par->pci_dev);
......
...@@ -67,11 +67,9 @@ extern int nvidiafb_sync(struct fb_info *info); ...@@ -67,11 +67,9 @@ extern int nvidiafb_sync(struct fb_info *info);
#ifdef CONFIG_FB_NVIDIA_BACKLIGHT #ifdef CONFIG_FB_NVIDIA_BACKLIGHT
extern void nvidia_bl_init(struct nvidia_par *par); extern void nvidia_bl_init(struct nvidia_par *par);
extern void nvidia_bl_exit(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 #else
static inline void nvidia_bl_init(struct nvidia_par *par) {} 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_exit(struct nvidia_par *par) {}
static inline void nvidia_bl_set_power(struct fb_info *info, int power) {}
#endif #endif
#endif /* __NV_PROTO_H__ */ #endif /* __NV_PROTO_H__ */
...@@ -938,8 +938,6 @@ static int nvidiafb_blank(int blank, struct fb_info *info) ...@@ -938,8 +938,6 @@ static int nvidiafb_blank(int blank, struct fb_info *info)
NVWriteSeq(par, 0x01, tmp); NVWriteSeq(par, 0x01, tmp);
NVWriteCrtc(par, 0x1a, vesa); NVWriteCrtc(par, 0x1a, vesa);
nvidia_bl_set_power(info, blank);
NVTRACE_LEAVE(); NVTRACE_LEAVE();
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment