From: Len Brown <lenb@kernel.org>
To: Zhang Rui <rui.zhang@intel.com>
Cc: "linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
Alexey Starikovskiy <astarikovskiy@suse.de>
Subject: Re: [PATCH 1/4] ACPI AC/Battery/SBS: deprecate procfs I/F and make sysfs I/F always built in
Date: Fri, 01 Oct 2010 21:40:57 -0400 (EDT) [thread overview]
Message-ID: <alpine.LFD.2.00.1010012137240.2293@localhost.localdomain> (raw)
In-Reply-To: <1285965576.2111.3744.camel@rui>
On Sat, 2 Oct 2010, Zhang Rui wrote:
>
> ACPI AC/Battery/SBS driver has different kernel option for procfs and sysfs I/F.
>
> This patch,
> 1. Change CONFIG_ACPI_PROCFS_POWER to 'n' by default so that we can remove it in the next release or two.
> 2. Remove CONFIG_ACPI_SYSFS_POWER and always build in the sysfs I/F of these drivers.
>
> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
> ---
> drivers/acpi/Kconfig | 9 +--------
> drivers/acpi/ac.c | 14 --------------
> drivers/acpi/battery.c | 21 ---------------------
> drivers/acpi/sbs.c | 25 -------------------------
> 4 files changed, 1 insertion(+), 68 deletions(-)
>
> Index: linux-2.6/drivers/acpi/Kconfig
> ===================================================================
> --- linux-2.6.orig/drivers/acpi/Kconfig
> +++ linux-2.6/drivers/acpi/Kconfig
> @@ -66,7 +66,7 @@ config ACPI_PROCFS
> config ACPI_PROCFS_POWER
> bool "Deprecated power /proc/acpi directories"
> depends on PROC_FS
> - default y
> + default n
"default n" is redundant, since Kconfig defaults to 'n'
when no default is specified.
> -config ACPI_SYSFS_POWER
> - bool "Future power /sys interface"
> - select POWER_SUPPLY
If we stop selecting POWER_SUPPLY here,
we become exposed to a build error:
drivers/built-in.o: In function `sysfs_remove_battery':
battery.c:(.text+0x5106e): undefined reference to
`power_supply_unregister'
drivers/built-in.o: In function `acpi_battery_update':
battery.c:(.text+0x5162b): undefined reference to `power_supply_register'
drivers/built-in.o: In function `acpi_battery_notify':
battery.c:(.text+0x516ed): undefined reference to `power_supply_changed'
thanks,
Len Brown, Intel Open Source Technology Center
next prev parent reply other threads:[~2010-10-02 1:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-01 20:39 [PATCH 1/4] ACPI AC/Battery/SBS: deprecate procfs I/F and make sysfs I/F always built in Zhang Rui
2010-10-02 1:40 ` Len Brown [this message]
2010-10-02 2:41 ` Len Brown
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=alpine.LFD.2.00.1010012137240.2293@localhost.localdomain \
--to=lenb@kernel.org \
--cc=astarikovskiy@suse.de \
--cc=linux-acpi@vger.kernel.org \
--cc=rui.zhang@intel.com \
/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