]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: core: Add psy_has_property()
authorMatthias Kaehlcke <mka@chromium.org>
Wed, 1 Sep 2021 23:59:36 +0000 (16:59 -0700)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 27 Sep 2021 14:21:40 +0000 (16:21 +0200)
commit1149e667894f2499efdc995f98b3e90985d313be
tree7e165fa26091c2ce3ff8c5a6d2953daacc735f53
parent064b9fb6b83834d55eca079d373eab1cea4818c0
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>
drivers/power/supply/power_supply_core.c