Skip to content
Commit 9ba533eb authored by Matthias Kaehlcke's avatar Matthias Kaehlcke Committed by Sebastian Reichel
Browse files

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: default avatarMatthias Kaehlcke <mka@chromium.org>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 5d1f642a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment