Home
last modified time | relevance | path

Searched refs:nconfs (Results 1 – 1 of 1) sorted by relevance

/linux-4.19.296/drivers/extcon/
Dextcon-arizona.c1258 int nconfs, ret; in arizona_extcon_get_micd_configs() local
1262 nconfs = device_property_read_u32_array(arizona->dev, prop, NULL, 0); in arizona_extcon_get_micd_configs()
1263 if (nconfs <= 0) in arizona_extcon_get_micd_configs()
1266 vals = kcalloc(nconfs, sizeof(u32), GFP_KERNEL); in arizona_extcon_get_micd_configs()
1270 ret = device_property_read_u32_array(arizona->dev, prop, vals, nconfs); in arizona_extcon_get_micd_configs()
1274 nconfs /= entries_per_config; in arizona_extcon_get_micd_configs()
1275 micd_configs = devm_kcalloc(dev, nconfs, sizeof(*micd_configs), in arizona_extcon_get_micd_configs()
1282 for (i = 0, j = 0; i < nconfs; ++i) { in arizona_extcon_get_micd_configs()
1289 arizona->pdata.num_micd_configs = nconfs; in arizona_extcon_get_micd_configs()