media: atomisp: Convert comments to C99 initializers
authorPhilipp Gerlesberger <Philipp.Gerlesberger@fau.de>
Mon, 14 Dec 2020 11:01:45 +0000 (12:01 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 22 Mar 2021 17:05:16 +0000 (18:05 +0100)
The struct initalizers have been changed as recommended on
https://kernelnewbies.org/KernelJanitors/Todo
Also remove all the false, 0, and NULL members.

Link: https://lore.kernel.org/linux-media/20201214110156.6152-2-Philipp.Gerlesberger@fau.de
Co-developed-by: Andrey Khlopkov <ij72uhux@stud.informatik.uni-erlangen.de>
Signed-off-by: Andrey Khlopkov <ij72uhux@stud.informatik.uni-erlangen.de>
Signed-off-by: Philipp Gerlesberger <Philipp.Gerlesberger@fau.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c

index b4f53be18e7f04021e73c7cbff7c2ca9c2d72df7..834b07e2cd9b3e0a3d51d9929780987aa0bb9f6d 100644 (file)
@@ -30,34 +30,22 @@ static struct ia_css_rmgr_vbuf_handle handle_table[NUM_HANDLES];
 /*
  * @brief VBUF resource pool - refpool
  */
-static struct ia_css_rmgr_vbuf_pool refpool = {
-       false,                  /* copy_on_write */
-       false,                  /* recycle */
-       0,                      /* size */
-       0,                      /* index */
-       NULL,                   /* handles */
-};
+static struct ia_css_rmgr_vbuf_pool refpool;
 
 /*
  * @brief VBUF resource pool - writepool
  */
 static struct ia_css_rmgr_vbuf_pool writepool = {
-       true,                   /* copy_on_write */
-       false,                  /* recycle */
-       0,                      /* size */
-       0,                      /* index */
-       NULL,                   /* handles */
+       .copy_on_write  = true,
 };
 
 /*
  * @brief VBUF resource pool - hmmbufferpool
  */
 static struct ia_css_rmgr_vbuf_pool hmmbufferpool = {
-       true,                   /* copy_on_write */
-       true,                   /* recycle */
-       32,                     /* size */
-       0,                      /* index */
-       NULL,                   /* handles */
+       .copy_on_write  = true,
+       .recycle        = true,
+       .size           = 32,
 };
 
 struct ia_css_rmgr_vbuf_pool *vbuf_ref = &refpool;