Lines Matching refs:switches
39 struct iqs62x_switch_desc switches[ARRAY_SIZE(iqs62x_switch_names)]; member
70 for (i = 0; i < ARRAY_SIZE(iqs62x_keys->switches); i++) { in iqs62x_keys_parse_prop()
83 iqs62x_keys->switches[i].code = val; in iqs62x_keys_parse_prop()
84 iqs62x_keys->switches[i].enabled = true; in iqs62x_keys_parse_prop()
87 iqs62x_keys->switches[i].flag = (i == IQS62X_SW_HALL_N ? in iqs62x_keys_parse_prop()
91 iqs62x_keys->switches[i].flag = (i == IQS62X_SW_HALL_N ? in iqs62x_keys_parse_prop()
139 for (i = 0; i < ARRAY_SIZE(iqs62x_keys->switches); i++) { in iqs62x_keys_init()
140 if (!(iqs62x_keys->switches[i].enabled)) in iqs62x_keys_init()
143 flag = iqs62x_keys->switches[i].flag; in iqs62x_keys_init()
151 iqs62x_keys->switches[i].code, in iqs62x_keys_init()
217 for (i = 0; i < ARRAY_SIZE(iqs62x_keys->switches); i++) in iqs62x_keys_notifier()
218 if (iqs62x_keys->switches[i].enabled) in iqs62x_keys_notifier()
220 iqs62x_keys->switches[i].code, in iqs62x_keys_notifier()
222 BIT(iqs62x_keys->switches[i].flag)); in iqs62x_keys_notifier()
284 for (i = 0; i < ARRAY_SIZE(iqs62x_keys->switches); i++) in iqs62x_keys_probe()
285 if (iqs62x_keys->switches[i].enabled) in iqs62x_keys_probe()
287 iqs62x_keys->switches[i].code); in iqs62x_keys_probe()