Searched refs:mode_map (Results 1 – 2 of 2) sorted by relevance
90 static struct lm3530_mode_map mode_map[] = { variable149 for (i = 0; i < ARRAY_SIZE(mode_map); i++) in lm3530_get_mode_from_str()150 if (sysfs_streq(str, mode_map[i].mode)) in lm3530_get_mode_from_str()151 return mode_map[i].mode_val; in lm3530_get_mode_from_str()358 for (i = 0; i < ARRAY_SIZE(mode_map); i++) in lm3530_mode_get()359 if (drvdata->mode == mode_map[i].mode_val) in lm3530_mode_get()360 len += sprintf(buf + len, "[%s] ", mode_map[i].mode); in lm3530_mode_get()362 len += sprintf(buf + len, "%s ", mode_map[i].mode); in lm3530_mode_get()
140 static const struct mode_map { struct224 const struct mode_map *map; in mac_vmode_to_var()306 const struct mode_map *map; in mac_var_to_vmode()