mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Anton Vorontsov <cbouatmailru@gmail.com>
To: Jean Delvare <jdelvare@suse.de>
Cc: David Woodhouse <dwmw2@infradead.org>,
	linux-kernel@vger.kernel.org,
	Matthew Garrett <mjg59@srcf.ucam.org>,
	Alex Deucher <alexander.deucher@amd.com>
Subject: Re: [PATCH] power: Assume mains power by default
Date: Fri, 6 Jan 2012 05:52:06 +0400	[thread overview]
Message-ID: <20120106015206.GA15103@oksana.dev.rtsoft.ru> (raw)
In-Reply-To: <201112102253.36940.jdelvare@suse.de>

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@suse.de>
> Cc: Anton Vorontsov <cbou@mail.ru>
> Cc: David Woodhouse <dwmw2@infradead.org>
> Cc: Matthew Garrett <mjg59@srcf.ucam.org>
> Cc: Alex Deucher <alexander.deucher@amd.com>
> ---

Applied, thanks!

-- 
Anton Vorontsov
Email: cbouatmailru@gmail.com

      reply	other threads:[~2012-01-06  1:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-10 21:53 Jean Delvare
2012-01-06  1:52 ` Anton Vorontsov [this message]

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=20120106015206.GA15103@oksana.dev.rtsoft.ru \
    --to=cbouatmailru@gmail.com \
    --cc=alexander.deucher@amd.com \
    --cc=dwmw2@infradead.org \
    --cc=jdelvare@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mjg59@srcf.ucam.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

Powered by JetHome