Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
memset (&ctl,0,sizeof(ctl));
- ctl.fname = XC2028_DEFAULT_FIRMWARE;
+ ctl.fname = XC2028_DEFAULT_FIRMWARE;
+ ctl.max_len = 64;
xc2028_cfg.tuner = TUNER_XC2028;
xc2028_cfg.priv = &ctl;
strcpy(priv->ctrl.fname, p->fname);
}
+ if (p->max_len>0)
+ priv->max_len = p->max_len;
+
tuner_info("%s OK\n", __FUNCTION__);
return 0;
struct xc2028_ctrl {
enum xc2028_firm_type type;
char *fname;
+ int max_len;
};
/* xc2028 commands for callback */