2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-09 14:14:00 +08:00

staging: bcm2835-camera: remove anonymous field declarations

Anonymous field declarations are error prone. This patch replaces
anonymous declarations with explicit field declarations for typedef
SERVICE_CREATION_T in vchiq_mmal_init(..)

Signed-off-by: Aishwarya Pant <aishpant@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Aishwarya Pant 2017-03-10 22:09:27 +05:30 committed by Greg Kroah-Hartman
parent 7ebe438c64
commit 2ba835dd3e

View File

@ -1977,16 +1977,16 @@ int vchiq_mmal_init(struct vchiq_mmal_instance **out_instance)
static VCHI_CONNECTION_T *vchi_connection;
static VCHI_INSTANCE_T vchi_instance;
SERVICE_CREATION_T params = {
VCHI_VERSION_EX(VC_MMAL_VER, VC_MMAL_MIN_VER),
VC_MMAL_SERVER_NAME,
vchi_connection,
0, /* rx fifo size (unused) */
0, /* tx fifo size (unused) */
service_callback,
NULL, /* service callback parameter */
1, /* unaligned bulk receives */
1, /* unaligned bulk transmits */
0 /* want crc check on bulk transfers */
.version = VCHI_VERSION_EX(VC_MMAL_VER, VC_MMAL_MIN_VER),
.service_id = VC_MMAL_SERVER_NAME,
.connection = vchi_connection,
.rx_fifo_size = 0,
.tx_fifo_size = 0,
.callback = service_callback,
.callback_param = NULL,
.want_unaligned_bulk_rx = 1,
.want_unaligned_bulk_tx = 1,
.want_crc = 0
};
/* compile time checks to ensure structure size as they are