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>
This commit is contained in:
Matthias Kaehlcke 2021-09-01 16:59:36 -07:00 • committed by Sebastian Reichel
commit 9ba533eb99