Search Linux Wireless

Re: Q: how to update platform power state for the network driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Julian Calaby <julian.calaby@xxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux