Lines Matching full:switches
3 * Azoteq IQS620A/621/622/624/625 Keys and Switches
39 struct iqs62x_switch_desc switches[ARRAY_SIZE(iqs62x_switch_names)]; member
69 for (i = 0; i < ARRAY_SIZE(iqs62x_keys->switches); i++) { in iqs62x_keys_parse_prop()
82 iqs62x_keys->switches[i].code = val; in iqs62x_keys_parse_prop()
83 iqs62x_keys->switches[i].enabled = true; in iqs62x_keys_parse_prop()
86 iqs62x_keys->switches[i].flag = (i == IQS62X_SW_HALL_N ? in iqs62x_keys_parse_prop()
90 iqs62x_keys->switches[i].flag = (i == IQS62X_SW_HALL_N ? in iqs62x_keys_parse_prop()
133 * Hall UI flags represent switches and are unmasked if their in iqs62x_keys_init()
136 for (i = 0; i < ARRAY_SIZE(iqs62x_keys->switches); i++) { in iqs62x_keys_init()
137 if (!(iqs62x_keys->switches[i].enabled)) in iqs62x_keys_init()
140 flag = iqs62x_keys->switches[i].flag; in iqs62x_keys_init()
148 iqs62x_keys->switches[i].code, in iqs62x_keys_init()
214 for (i = 0; i < ARRAY_SIZE(iqs62x_keys->switches); i++) in iqs62x_keys_notifier()
215 if (iqs62x_keys->switches[i].enabled) in iqs62x_keys_notifier()
217 iqs62x_keys->switches[i].code, in iqs62x_keys_notifier()
219 BIT(iqs62x_keys->switches[i].flag)); in iqs62x_keys_notifier()
281 for (i = 0; i < ARRAY_SIZE(iqs62x_keys->switches); i++) in iqs62x_keys_probe()
282 if (iqs62x_keys->switches[i].enabled) in iqs62x_keys_probe()
284 iqs62x_keys->switches[i].code); in iqs62x_keys_probe()
331 MODULE_DESCRIPTION("Azoteq IQS620A/621/622/624/625 Keys and Switches");