dm: core: Add dev_read_enabled() to check if a device is enabled
authorSimon Glass <sjg@chromium.org>
Mon, 12 Jun 2017 12:21:30 +0000 (06:21 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 11 Jul 2017 16:08:20 +0000 (10:08 -0600)
commitf7d6fcf7aead384ea39bc7aba581e912c3759eaa
treeaae54342a8ce91b9c5ad4ba9418e42d2d891586b
parenta44810123f9ef069587beacdce7d6f488cf42973
dm: core: Add dev_read_enabled() to check if a device is enabled

This function allows a device's status to be read. This indicates whether
the device should be enabled or disabled.

Note: In normal operation disabled devices will not be present in the
driver-model tree.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Tested-on: Beaver, Jetson-TK1
drivers/core/read.c
include/dm/read.h