core: Add dev_{disable,enable}_by_path
authorMario Six <mario.six@gdsys.cc>
Tue, 26 Jun 2018 06:46:50 +0000 (08:46 +0200)
committerSimon Glass <sjg@chromium.org>
Sat, 29 Sep 2018 17:49:35 +0000 (11:49 -0600)
commite4c98a59db99e6bfba74d27cc571d59213acb64e
treeaf415a4f31c37994f94531dcc4923270ef894d68
parent2ea4d0db738f69f14a08406763ffca332f5c0446
core: Add dev_{disable,enable}_by_path

We cannot use device structures to disable devices, since getting
them with the API functions would bind and activate the device, which
would fail if the underlying device does not exist.
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/device.c
include/dm/device.h