Files
zephyr/include
Armando Visconti 4b4068c948 kernel/device: add arg checking in z_device_ready()
If this call receives an invalid device pointer as argument it
assumes that the `device` is not ready for usage.

This routine is currently called by two device specific APIs:

    - device_usable_check(const struct device *dev)
    - device_is_ready(const struct device *dev)

The device-specific APIs documentation claims that these two
routines must be called with a device pointer captured from
DEVICE_DT_GET(). So passing NULL is a violation of the rule.

Nevertheless, is quite common in drivers to assign NULL to
a device pointer if the corresponding DT property has not been
found (e.g. a not used gpio interrupt declaration for a given
device instance) and seems legit to interpret this condition
same as the device is not ready for usage.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2021-05-18 11:29:46 -05:00
..
2020-12-18 12:18:28 +01:00
2021-05-07 22:10:21 -04:00
2021-05-17 11:51:44 -04:00
2021-05-10 16:00:43 -05:00
2021-03-19 15:50:21 +01:00
2021-05-18 11:24:40 -05:00
2021-05-17 11:51:44 -04:00
2021-05-05 18:35:49 -04:00
2021-05-17 18:45:57 -04:00
2021-04-22 12:51:01 -04:00
2021-03-19 11:22:17 -04:00
2021-04-22 07:42:58 -04:00