To enable acm function with default configuration, acm function
should be added default function list and instance number should
also be set as at least 1.
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
};
/* TODO: only enabled 'rndis' and 'sdb'. need to verify more functions */
-static const char * const default_funcs[] = {"rndis", "sdb", "mtp"};
+static const char * const default_funcs[] = {"rndis", "sdb", "mtp", "acm"};
static unsigned slp_multi_nluns;
static struct class *slp_multi_class;
static struct slp_multi_dev *_slp_multi_dev;
if (!config)
return -ENOMEM;
f->config = config;
+ config->instances = 1;
for (i = 0; i < MAX_ACM_INSTANCES; i++) {
config->f_acm_inst[i] = usb_get_function_instance("acm");