From: Jonathan Woithe <jwoithe@just42.net>
To: Michael Karcher <kernel@mkarcher.dialup.fu-berlin.de>
Cc: Darren Hart <dvhart@infradead.org>,
platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org,
Michael Karcher <karcher@physik.fu-berlin.de>
Subject: Re: [PATCH] fujitsu-laptop: use FB_BLANK_* constants
Date: Sun, 18 Jan 2015 20:24:44 +1030 [thread overview]
Message-ID: <20150118095443.GB16157@marvin.atrad.com.au> (raw)
In-Reply-To: <1421539331-32515-1-git-send-email-kernel@mkarcher.dialup.fu-berlin.de>
On Sun, Jan 18, 2015 at 01:02:11AM +0100, Michael Karcher wrote:
> From: Michael Karcher <karcher@physik.fu-berlin.de>
This looks ok to me.
Acked-by: Jonathan Woithe <jwoithe@just42.net>
> Signed-off-by: Michael Karcher <kernel@mkarcher.dialup.fu-berlin.de>
> ---
> drivers/platform/x86/fujitsu-laptop.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/platform/x86/fujitsu-laptop.c b/drivers/platform/x86/fujitsu-laptop.c
> index 7c21c1c..2a9afa2 100644
> --- a/drivers/platform/x86/fujitsu-laptop.c
> +++ b/drivers/platform/x86/fujitsu-laptop.c
> @@ -64,6 +64,7 @@
> #include <linux/acpi.h>
> #include <linux/dmi.h>
> #include <linux/backlight.h>
> +#include <linux/fb.h>
> #include <linux/input.h>
> #include <linux/kfifo.h>
> #include <linux/platform_device.h>
> @@ -398,7 +399,7 @@ static int bl_get_brightness(struct backlight_device *b)
> static int bl_update_status(struct backlight_device *b)
> {
> int ret;
> - if (b->props.power == 4)
> + if (b->props.power == FB_BLANK_POWERDOWN)
> ret = call_fext_func(FUNC_BACKLIGHT, 0x1, 0x4, 0x3);
> else
> ret = call_fext_func(FUNC_BACKLIGHT, 0x1, 0x4, 0x0);
> @@ -1139,9 +1140,9 @@ static int __init fujitsu_init(void)
>
> if (!acpi_video_backlight_support()) {
> if (call_fext_func(FUNC_BACKLIGHT, 0x2, 0x4, 0x0) == 3)
> - fujitsu->bl_device->props.power = 4;
> + fujitsu->bl_device->props.power = FB_BLANK_POWERDOWN;
> else
> - fujitsu->bl_device->props.power = 0;
> + fujitsu->bl_device->props.power = FB_BLANK_UNBLANK;
> }
>
> pr_info("driver " FUJITSU_DRIVER_VERSION " successfully loaded\n");
> --
> 2.1.3
next prev parent reply other threads:[~2015-01-18 10:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-17 23:32 [PATCH 1/1] " Michael Karcher
2015-01-18 0:02 ` [PATCH] " Michael Karcher
2015-01-18 9:54 ` Jonathan Woithe [this message]
2015-01-18 19:14 ` Darren Hart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150118095443.GB16157@marvin.atrad.com.au \
--to=jwoithe@just42.net \
--cc=dvhart@infradead.org \
--cc=karcher@physik.fu-berlin.de \
--cc=kernel@mkarcher.dialup.fu-berlin.de \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®