Commit 8776682c authored by Philipp Gerlesberger's avatar Philipp Gerlesberger Committed by Mauro Carvalho Chehab

media: atomisp: Convert comments to C99 initializers

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.deCo-developed-by: default avatarAndrey Khlopkov <ij72uhux@stud.informatik.uni-erlangen.de>
Signed-off-by: default avatarAndrey Khlopkov <ij72uhux@stud.informatik.uni-erlangen.de>
Signed-off-by: default avatarPhilipp Gerlesberger <Philipp.Gerlesberger@fau.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent c1f1d76c
...@@ -30,34 +30,22 @@ static struct ia_css_rmgr_vbuf_handle handle_table[NUM_HANDLES]; ...@@ -30,34 +30,22 @@ static struct ia_css_rmgr_vbuf_handle handle_table[NUM_HANDLES];
/* /*
* @brief VBUF resource pool - refpool * @brief VBUF resource pool - refpool
*/ */
static struct ia_css_rmgr_vbuf_pool refpool = { static struct ia_css_rmgr_vbuf_pool refpool;
false, /* copy_on_write */
false, /* recycle */
0, /* size */
0, /* index */
NULL, /* handles */
};
/* /*
* @brief VBUF resource pool - writepool * @brief VBUF resource pool - writepool
*/ */
static struct ia_css_rmgr_vbuf_pool writepool = { static struct ia_css_rmgr_vbuf_pool writepool = {
true, /* copy_on_write */ .copy_on_write = true,
false, /* recycle */
0, /* size */
0, /* index */
NULL, /* handles */
}; };
/* /*
* @brief VBUF resource pool - hmmbufferpool * @brief VBUF resource pool - hmmbufferpool
*/ */
static struct ia_css_rmgr_vbuf_pool hmmbufferpool = { static struct ia_css_rmgr_vbuf_pool hmmbufferpool = {
true, /* copy_on_write */ .copy_on_write = true,
true, /* recycle */ .recycle = true,
32, /* size */ .size = 32,
0, /* index */
NULL, /* handles */
}; };
struct ia_css_rmgr_vbuf_pool *vbuf_ref = &refpool; struct ia_css_rmgr_vbuf_pool *vbuf_ref = &refpool;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment