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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment