[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120106015206.GA15103@oksana.dev.rtsoft.ru>
Date: Fri, 6 Jan 2012 05:52:06 +0400
From: Anton Vorontsov <cbouatmailru@...il.com>
To: Jean Delvare <jdelvare@...e.de>
Cc: David Woodhouse <dwmw2@...radead.org>,
linux-kernel@...r.kernel.org,
Matthew Garrett <mjg59@...f.ucam.org>,
Alex Deucher <alexander.deucher@....com>
Subject: Re: [PATCH] power: Assume mains power by default
On Sat, Dec 10, 2011 at 10:53:36PM +0100, Jean Delvare wrote:
> If no power class device is found in power_supply_is_system_supplied(),
> the function currently returns 0, which basically means that the system
> is supposed to be running on battery. In practice, mobile devices tend
> to always implement at least one power class device and more often two
> (battery and AC adapter). Systems with no registered power class
> devices are more likely to be desktop systems, where the system is
> always powered by mains.
>
> So, change the default return value of
> power_supply_is_system_supplied() from 0 (running on battery) to 1
> (running on mains.)
>
> Signed-off-by: Jean Delvare <jdelvare@...e.de>
> Cc: Anton Vorontsov <cbou@...l.ru>
> Cc: David Woodhouse <dwmw2@...radead.org>
> Cc: Matthew Garrett <mjg59@...f.ucam.org>
> Cc: Alex Deucher <alexander.deucher@....com>
> ---
Applied, thanks!
--
Anton Vorontsov
Email: cbouatmailru@...il.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists