Commit ae2e7939 authored by Federico Vaga's avatar Federico Vaga

header: use generic array allocation

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent bce46ab1
......@@ -40,7 +40,8 @@
enum svec_map_win {
MAP_CR_CSR = 0, /* CR/CSR */
MAP_REG /* A32/A24/A16 space */
MAP_REG, /* A32/A24/A16 space */
__MAX_MAP, /* Maximum number of maps */
};
struct svec_config {
......@@ -69,7 +70,8 @@ struct svec_dev {
char name[16];
char driver[16];
char description[80];
struct vme_mapping *map[2];
struct vme_mapping *map[__MAX_MAP];
struct svec_config cfg_cur, cfg_new;
struct fmc_device *fmcs[SVEC_N_SLOTS];
......
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