linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Lan Tianyu <tianyu.lan@intel.com>
Cc: Stefan Lippers-Hollmann <s.L-H@gmx.de>,
	"Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Ilia Mirkin <imirkin@alum.mit.edu>,
	"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
	kernel list <linux-kernel@vger.kernel.org>
Subject: Re: 3.14-rc: /proc/acpi/battery gone?
Date: Sun, 16 Mar 2014 12:12:31 +0100	[thread overview]
Message-ID: <20140316111231.GA25825@amd.pavel.ucw.cz> (raw)
In-Reply-To: <53248D6D.1010405@intel.com>

Hi!

> >New kernel should work with old userspace... and clearly it does not.
> >
> >Do you have test patch for a revert?
> 
> Please try this patch.

I tried to apply it, but it is a bit too wordwrapped :-(.

Thanks,
									Pavel

> @@ -301,6 +320,14 @@ static enum power_supply_property
> energy_battery_props[] = {
>  	POWER_SUPPLY_PROP_SERIAL_NUMBER,
>  };
> 
> +#ifdef CONFIG_ACPI_PROCFS_POWER
> +inline char *acpi_battery_units(struct acpi_battery *battery)
> +{
> +	return (battery->power_unit == ACPI_BATTERY_POWER_UNIT_MA) ?
> +		"mA" : "mW";
> +}
> +#endif
> +
>  /* --------------------------------------------------------------------------
>                                 Battery Management
> 
> --------------------------------------------------------------------------
> */

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

  reply	other threads:[~2014-03-16 11:12 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-14 21:14 3.14-rc: /proc/acpi/battery gone? Pavel Machek
2014-03-14 21:20 ` Pavel Machek
2014-03-14 21:29 ` Ilia Mirkin
2014-03-14 21:45   ` Richard Weinberger
2014-03-15 15:10     ` Lan Tianyu
2014-03-14 22:11   ` Pavel Machek
2014-03-14 22:14     ` Ilia Mirkin
2014-03-15  1:46       ` Rafael J. Wysocki
2014-03-15  2:17         ` Stefan Lippers-Hollmann
2014-03-15 15:29           ` Lan Tianyu
2014-03-15 16:05             ` Pavel Machek
2014-03-15 17:27               ` Lan Tianyu
2014-03-16 11:12                 ` Pavel Machek [this message]
2014-03-16  3:57             ` Stefan Lippers-Hollmann
2014-03-17 17:28               ` Ilia Mirkin
2014-04-20 13:09                 ` Pavel Machek
2014-04-21 11:29                   ` Lan Tianyu
2014-03-15 14:08         ` Pavel Machek

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=20140316111231.GA25825@amd.pavel.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=imirkin@alum.mit.edu \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rjw@rjwysocki.net \
    --cc=s.L-H@gmx.de \
    --cc=tianyu.lan@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;
as well as URLs for NNTP newsgroup(s).