commit | 9ba533eb99bb2acf8b2268c6f48dcf73e1e47753 | [log] [tgz] |
---|---|---|
author | Matthias Kaehlcke <mka@chromium.org> | Wed Sep 01 16:59:36 2021 -0700 |
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | Mon Sep 27 16:21:40 2021 +0200 |
tree | 7e165fa26091c2ce3ff8c5a6d2953daacc735f53 | |
parent | 5d1f642aad69c76f6a260528a22701ec4a8f12f5 [diff] |
power: supply: core: Add psy_has_property() Add the helper psy_has_property() to check whether a power supply has a given property and use it instead of ad hoc iterations over the property list in multiple locations. Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>