On Friday, January 11, 2013 11:45:43 AM Julian Calaby wrote: > > #include <linux/power_supply.h> > > int power_supply_is_system_supplied(void); > 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. Sure, thanks for input -- 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