Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eab638a8 authored by Srishti Sharma's avatar Srishti Sharma Committed by Mauro Carvalho Chehab
Browse files

media: Staging: media: atomisp: pci: Eliminate use of typedefs for struct



The use of typedefs for struct is discouraged, and hence can be
eliminated. Done using the following semantic patch by coccinelle.

@r1@
type T;
@@

typedef struct {...} T;

@script: python p@
T << r1.T;
T1;
@@

if T[-2:] == "_t" or T[-2:] == "_T":
        coccinelle.T1 = T[:-2]
else:
        coccinelle.T1 = T

print T, T1
@r2@
type r1.T;
identifier p.T1;
@@

- typedef
struct
+ T1
{
...
}
- T

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent ec62464e
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -37,7 +37,7 @@ more details.
#include "ia_css_spctrl.h"
#include "ia_css_spctrl.h"
#include "ia_css_debug.h"
#include "ia_css_debug.h"


typedef struct {
struct spctrl_context_info {
	struct ia_css_sp_init_dmem_cfg dmem_config;
	struct ia_css_sp_init_dmem_cfg dmem_config;
	uint32_t        spctrl_config_dmem_addr; /** location of dmem_cfg  in SP dmem */
	uint32_t        spctrl_config_dmem_addr; /** location of dmem_cfg  in SP dmem */
	uint32_t        spctrl_state_dmem_addr;
	uint32_t        spctrl_state_dmem_addr;
@@ -45,9 +45,9 @@ typedef struct {
	hrt_vaddress    code_addr;          /* sp firmware location in host mem-DDR*/
	hrt_vaddress    code_addr;          /* sp firmware location in host mem-DDR*/
	uint32_t        code_size;
	uint32_t        code_size;
	char           *program_name;       /* used in case of PLATFORM_SIM */
	char           *program_name;       /* used in case of PLATFORM_SIM */
} spctrl_context_info;
};


static spctrl_context_info spctrl_cofig_info[N_SP_ID];
static struct spctrl_context_info spctrl_cofig_info[N_SP_ID];
static bool spctrl_loaded[N_SP_ID] = {0};
static bool spctrl_loaded[N_SP_ID] = {0};


/* Load firmware */
/* Load firmware */