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, 1 Jul 2020 15:32:50 +0000 (16:32 +0100)
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 f619697..38db20d 100644 (file)
@@ -1759,7 +1759,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);