public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: "lan,Tianyu" <tianyu.lan@intel.com>
To: linux acpi <linux-acpi@vger.kernel.org>, Len Brown <lenb@kernel.org>
Subject: [PATCH 2/3] ACPI / Battery: Replace acpi_battery_quirks2 with acpi_battery_quirks
Date: Mon, 20 Jun 2011 14:56:43 +0800	[thread overview]
Message-ID: <1308553003.18731.29.camel@lantianyu-ws> (raw)

Since the acpi_battery_quirks has been deleted, replace
acpi_battery_quirks2 with acpi_battery_quirks to clean the code

Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
---
 drivers/acpi/battery.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
index d6a3de9..0ae5b08 100644
--- a/drivers/acpi/battery.c
+++ b/drivers/acpi/battery.c
@@ -587,7 +587,7 @@ static void sysfs_remove_battery(struct acpi_battery *battery)
  *
  * Handle this correctly so that they won't break userspace.
  */
-static void acpi_battery_quirks2(struct acpi_battery *battery)
+static void acpi_battery_quirks(struct acpi_battery *battery)
 {
 	if (test_bit(ACPI_BATTERY_QUIRK_PERCENTAGE_CAPACITY, &battery->flags))
 		return ;
@@ -623,7 +623,7 @@ static int acpi_battery_update(struct acpi_battery *battery)
 	if (!battery->bat.dev)
 		sysfs_add_battery(battery);
 	result = acpi_battery_get_state(battery);
-	acpi_battery_quirks2(battery);
+	acpi_battery_quirks(battery);
 	return result;
 }
 
-- 
1.7.1



                 reply	other threads:[~2011-06-20  6:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1308553003.18731.29.camel@lantianyu-ws \
    --to=tianyu.lan@intel.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@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