linux-mips
[Top] [All Lists]

Re: [PATCH v5 4/8] Loongson: YeeLoong: add battery driver

To: Ralf Baechle <ralf@linux-mips.org>
Subject: Re: [PATCH v5 4/8] Loongson: YeeLoong: add battery driver
From: Wu Zhangjin <wuzhangjin@gmail.com>
Date: Mon, 30 Nov 2009 13:22:06 +0800
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>, linux-mips@linux-mips.org, zhangfx@lemote.com, yanh@lemote.com, huhb@lemote.com, Jamey Hicks <jamey@crl.dec.com>, Stephen Rothwell <sfr@linuxcare.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to:cc :in-reply-to:references:content-type:organization:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=3H6w4zgJ0U8dlMvxBawWd3/pkG8m0ePUHQcI+ARZgNg=; b=H0I7v9NuXH+UTThogz4IMv1Mph3vCdpyTa1FWtRxw1XVDPlDWnwq/aLryBq6vM36Bm pIO9uMteoTiHSbIxtOW2JPfV7DP3sLuiPMdbf8tQEWQ4UzicqFdg0mC2Kpf1BtgW3QWp ZdvehHWjGeGjuXmgpcCeY7bpMMCnex5gm9RdU=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:cc:in-reply-to:references:content-type :organization:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=Gl/Mf82OLW+WaET90UxXRE6npgVlaN7c99SHMbKldUY+HqxpVE8UIULAmFZtxLpPnB BkiU4Seo3Bla+sra2/LgdOBAi5Ocjwl7mKEpxk9W6kPX+ZlqINGkUBM/oeNPSXtBMX+7 Ehi7BoQbf1F2YLc+c8lc6RF+7EhWHydRm8i3E=
In-reply-to: <19f58dc908637c2e1216b9a644dba58ebc20b73f.1259414649.git.wuzhangjin@gmail.com>
Organization: DSLab, Lanzhou University, China
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <cover.1259414649.git.wuzhangjin@gmail.com> <19f58dc908637c2e1216b9a644dba58ebc20b73f.1259414649.git.wuzhangjin@gmail.com>
Reply-to: wuzhangjin@gmail.com
Sender: linux-mips-bounce@linux-mips.org
On Sat, 2009-11-28 at 21:37 +0800, Wu Zhangjin wrote:
> From: Wu Zhangjin <wuzhangjin@gmail.com>
> 
> This patch adds APM_EMULATION based Battery Driver, which provides
> standard interface for user-space applications to manage the battery.
> 
> Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
> ---
>  .../loongson/lemote-2f/yeeloong_laptop/Kconfig     |    9 ++
>  .../loongson/lemote-2f/yeeloong_laptop/Makefile    |    1 +
>  .../loongson/lemote-2f/yeeloong_laptop/battery.c   |  127 
> ++++++++++++++++++++
>  3 files changed, 137 insertions(+), 0 deletions(-)
>  create mode 100644 arch/mips/loongson/lemote-2f/yeeloong_laptop/battery.c
> 
> diff --git a/arch/mips/loongson/lemote-2f/yeeloong_laptop/Kconfig 
> b/arch/mips/loongson/lemote-2f/yeeloong_laptop/Kconfig
> index 02d36d8..e284c91 100644
> --- a/arch/mips/loongson/lemote-2f/yeeloong_laptop/Kconfig
> +++ b/arch/mips/loongson/lemote-2f/yeeloong_laptop/Kconfig
> @@ -19,4 +19,13 @@ config YEELOONG_BACKLIGHT
>         interface for user-space applications to control the brightness of
>         the backlight.
>  
> +config YEELOONG_BATTERY
> +     tristate "Battery Driver"
> +     select SYS_SUPPORTS_APM_EMULATION
> +     select APM_EMULATION

Will use "depend" on APM_EMULATION instead in the next version, and put
this line "select SYS_SUPPORTS_APM_EMULATION" under the
LEMOTE_YEELOONG2F.

Regards,
        Wu Zhangjin


<Prev in Thread] Current Thread [Next in Thread>