From: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
To: <linux-wireless@vger.kernel.org>
Subject: Re: Q: how to update platform power state for the network driver
Date: Thu, 10 Jan 2013 14:06:59 +0200 [thread overview]
Message-ID: <1363680.r8KF83dygC@lx-vladimir> (raw)
In-Reply-To: <6929081.7c7blFVDp4@lx-vladimir>
On Wednesday, January 09, 2013 07:20:06 PM Vladimir Kondratiev wrote:
> What is the best way to obtain this info in the network driver?
>
Found:
#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
next prev parent reply other threads:[~2013-01-10 12: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 [this message]
2013-01-11 0:45 ` Julian Calaby
2013-01-13 7:34 ` Vladimir Kondratiev
2013-01-14 7:07 ` Kalle Valo
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=1363680.r8KF83dygC@lx-vladimir \
--to=qca_vkondrat@qca.qualcomm.com \
--cc=linux-wireless@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