diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-11-01 03:29:54 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-11-01 03:29:54 +0000 |
commit | 4c4cf3a38a65617599225cbb8e4820f046c5e311 (patch) | |
tree | eb4f8f59f72c13a1f555ad5539d10bb0e88e7071 | |
parent | dfed0fbc5b65fbc8656999c8812099e0ce4bd5cc (diff) |
use hw_power to implement power_supply_is_system_supplied()
-rw-r--r-- | sys/dev/pci/drm/include/linux/power_supply.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/include/linux/power_supply.h b/sys/dev/pci/drm/include/linux/power_supply.h index 20391f528ae..706363a2f6f 100644 --- a/sys/dev/pci/drm/include/linux/power_supply.h +++ b/sys/dev/pci/drm/include/linux/power_supply.h @@ -6,8 +6,8 @@ static inline int power_supply_is_system_supplied(void) { - /* XXX return 0 if on battery */ - return (1); + extern int hw_power; + return hw_power; } #endif |