diff options
author | Dave Stevenson <dave.stevenson@raspberrypi.org> | 2019-06-29 21:31:39 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-04-13 12:50:13 +0200 |
commit | 11895fd09f5d37abbc60ac88f4897587997cfbf5 (patch) | |
tree | c4d2f7e4e7226aa4536fba9175b63b8e2986d08b /drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h | |
parent | cc9cd02dd9e8b7764ea9effb24f4f1dd73d1b23d (diff) | |
download | linux-stable-11895fd09f5d37abbc60ac88f4897587997cfbf5.tar.gz linux-stable-11895fd09f5d37abbc60ac88f4897587997cfbf5.tar.bz2 linux-stable-11895fd09f5d37abbc60ac88f4897587997cfbf5.zip |
staging: mmal-vchiq: Avoid use of bool in structures
[ Upstream commit 640e77466e69d9c28de227bc76881f5501f532ca ]
Fixes up a checkpatch error "Avoid using bool structure members
because of possible alignment issues".
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: f37e76abd614 ("staging: vc04_services: fix information leak in create_component()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h')
-rw-r--r-- | drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h b/drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h index b0ee1716525b..b3c231e619c9 100644 --- a/drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h +++ b/drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h @@ -47,7 +47,7 @@ typedef void (*vchiq_mmal_buffer_cb)( unsigned long length, u32 mmal_flags, s64 dts, s64 pts); struct vchiq_mmal_port { - bool enabled; + u32 enabled:1; u32 handle; u32 type; /* port type, cached to use on port info set */ u32 index; /* port index, cached to use on port info set */ @@ -81,7 +81,7 @@ struct vchiq_mmal_port { }; struct vchiq_mmal_component { - bool enabled; + u32 enabled:1; u32 handle; /* VideoCore handle for component */ u32 inputs; /* Number of input ports */ u32 outputs; /* Number of output ports */ |