Linux wireless drivers development
 help / color / mirror / Atom feed
From: Kalle Valo <kvalo@adurom.com>
To: Julian Calaby <julian.calaby@gmail.com>
Cc: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>,
	linux-wireless@vger.kernel.org
Subject: Re: Q: how to update platform power state for the network driver
Date: Mon, 14 Jan 2013 09:07:36 +0200	[thread overview]
Message-ID: <87y5fwz1hj.fsf@purkki.adurom.net> (raw)
In-Reply-To: <CAGRGNgVUq=8H-r=tA3W5ojyfWPfPt8YHB2zDVpK5EWeF-=5unw@mail.gmail.com> (Julian Calaby's message of "Fri, 11 Jan 2013 11:45:43 +1100")

Julian Calaby <julian.calaby@gmail.com> writes:

>> #include <linux/power_supply.h>
>> int power_supply_is_system_supplied(void);
>>
>> returns:
>> positive if system is AC supplied,
>> 0 if battery supplied
>> negative on error
>
> One minor point: you might want to add the ability to override this,
> even if it's only through debugfs so that people testing the code, or
> with unusual requirements can set this how they want / need it.

I'm also worried that this power_supply interface is not supported in
all platforms. Does anyone know how widely it's used?

-- 
Kalle Valo

  parent reply	other threads:[~2013-01-14  7:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-09 17:20 Q: how to update platform power state for the network driver Vladimir Kondratiev
2013-01-09 17:31 ` Johannes Berg
2013-01-10 12:06 ` Vladimir Kondratiev
2013-01-11  0:45   ` Julian Calaby
2013-01-13  7:34     ` Vladimir Kondratiev
2013-01-14  7:07     ` Kalle Valo [this message]
2013-01-10 21:39 ` Kalle Valo
2013-01-13  7:33   ` Vladimir Kondratiev
2013-01-14  7:01     ` Kalle Valo

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=87y5fwz1hj.fsf@purkki.adurom.net \
    --to=kvalo@adurom.com \
    --cc=julian.calaby@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=qca_vkondrat@qca.qualcomm.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