commit | fa031f8cbf5ed11b4bee2323a357fd76a9219774 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Jun 12 06:21:30 2017 -0600 |
committer | Simon Glass <sjg@chromium.org> | Tue Jul 11 10:08:20 2017 -0600 |
tree | aae54342a8ce91b9c5ad4ba9418e42d2d891586b | |
parent | 170e17c05d19c6ac99ee80408ae10f4efca0e4cd [diff] |
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