shell: use public API to check device readiness

Avoid the private API now that there's a public equivalent.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
Peter Bigot 2020-11-30 12:18:44 -06:00 committed by Anas Nashif
commit 63638ceed6
2 changed files with 3 additions and 3 deletions

View file

@ -469,7 +469,7 @@ const struct device *shell_device_lookup(size_t idx,
const struct device *dev_end = dev + len;
while (dev < dev_end) {
if (z_device_ready(dev)
if (device_is_ready(dev)
&& (dev->name != NULL)
&& (strlen(dev->name) != 0)
&& ((prefix == NULL)