Searched refs:num_states (Results 1 – 1 of 1) sorted by relevance
538 int num_states = 0; in ppc_rtas_process_sensor() local547 num_states = sizeof(key_switch) / sizeof(char *); in ppc_rtas_process_sensor()548 if (state < num_states) { in ppc_rtas_process_sensor()555 num_states = sizeof(enclosure_switch) / sizeof(char *); in ppc_rtas_process_sensor()556 if (state < num_states) { in ppc_rtas_process_sensor()568 num_states = sizeof(lid_status) / sizeof(char *); in ppc_rtas_process_sensor()569 if (state < num_states) { in ppc_rtas_process_sensor()576 num_states = sizeof(power_source) / sizeof(char *); in ppc_rtas_process_sensor()577 if (state < num_states) { in ppc_rtas_process_sensor()588 num_states = sizeof(battery_remaining) / sizeof(char *); in ppc_rtas_process_sensor()[all …]