dm: core: Access device flags through functions
At present flags are stored as part of the device. In preparation for storing them separately, change the access to go through inline functions. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -492,7 +492,7 @@ static inline void __virtio_clear_bit(struct udevice *udev, unsigned int fbit)
|
||||
*/
|
||||
static inline bool virtio_has_feature(struct udevice *vdev, unsigned int fbit)
|
||||
{
|
||||
if (!(vdev->flags & DM_FLAG_BOUND))
|
||||
if (!(dev_get_flags(vdev) & DM_FLAG_BOUND))
|
||||
WARN_ON(true);
|
||||
|
||||
return __virtio_test_bit(vdev->parent, fbit);
|
||||
|
Reference in New Issue
Block a user