1 From 504d899794febbec7f371a2ef3d1b18e991d18e5 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.org>
3 Date: Mon, 29 Oct 2018 16:20:46 +0000
4 Subject: [PATCH 269/703] staging: mmal-vchiq: Avoid use of bool in structures
6 Fixes up a checkpatch error "Avoid using bool structure members
7 because of possible alignment issues".
9 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
11 .../staging/vc04_services/vchiq-mmal/mmal-vchiq.c | 14 +++++++-------
12 .../staging/vc04_services/vchiq-mmal/mmal-vchiq.h | 4 ++--
13 2 files changed, 9 insertions(+), 9 deletions(-)
15 --- a/drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c
16 +++ b/drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c
17 @@ -861,9 +861,9 @@ static int port_info_get(struct vchiq_mm
20 if (rmsg->u.port_info_get_reply.port.is_enabled == 0)
21 - port->enabled = false;
24 - port->enabled = true;
27 /* copy the values out of the message */
28 port->handle = rmsg->u.port_info_get_reply.port_handle;
29 @@ -1300,7 +1300,7 @@ static int port_disable(struct vchiq_mma
33 - port->enabled = false;
36 ret = port_action_port(instance, port,
37 MMAL_MSG_PORT_ACTION_TYPE_DISABLE);
38 @@ -1352,7 +1352,7 @@ static int port_enable(struct vchiq_mmal
42 - port->enabled = true;
45 if (port->buffer_cb) {
46 /* send buffer headers to videocore */
47 @@ -1524,7 +1524,7 @@ int vchiq_mmal_port_connect_tunnel(struc
48 pr_err("failed disconnecting src port\n");
51 - src->connected->enabled = false;
52 + src->connected->enabled = 0;
53 src->connected = NULL;
56 @@ -1760,7 +1760,7 @@ int vchiq_mmal_component_enable(struct v
58 ret = enable_component(instance, component);
60 - component->enabled = true;
61 + component->enabled = 1;
63 mutex_unlock(&instance->vchiq_mutex);
65 @@ -1786,7 +1786,7 @@ int vchiq_mmal_component_disable(struct
67 ret = disable_component(instance, component);
69 - component->enabled = false;
70 + component->enabled = 0;
72 mutex_unlock(&instance->vchiq_mutex);
74 --- a/drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.h
75 +++ b/drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.h
76 @@ -48,7 +48,7 @@ typedef void (*vchiq_mmal_buffer_cb)(
77 unsigned long length, u32 mmal_flags, s64 dts, s64 pts);
79 struct vchiq_mmal_port {
83 u32 type; /* port type, cached to use on port info set */
84 u32 index; /* port index, cached to use on port info set */
85 @@ -83,7 +83,7 @@ struct vchiq_mmal_port {
87 struct vchiq_mmal_component {
91 u32 handle; /* VideoCore handle for component */
92 u32 inputs; /* Number of input ports */
93 u32 outputs; /* Number of output ports */