staging: mmal-vchiq: Avoid use of bool in structures
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Mon, 29 Oct 2018 16:20:46 +0000 (16:20 +0000)
committerpopcornmix <popcornmix@gmail.com>
Wed, 27 Jan 2021 19:12:58 +0000 (19:12 +0000)
Fixes up a checkpatch error "Avoid using bool structure members
because of possible alignment issues".

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c

index 9097bcb..8734a09 100644 (file)
@@ -1775,7 +1775,7 @@ int vchiq_mmal_component_enable(struct vchiq_mmal_instance *instance,
 
        ret = enable_component(instance, component);
        if (ret == 0)
-               component->enabled = true;
+               component->enabled = 1;
 
        mutex_unlock(&instance->vchiq_mutex);