Lines Matching full:polarity
57 const char *func, u32 polarity) in skl_int3472_map_gpio_to_sensor() argument
83 table_entry->flags = polarity; in skl_int3472_map_gpio_to_sensor()
90 static void int3472_get_func_and_polarity(u8 type, const char **func, u32 *polarity) in int3472_get_func_and_polarity() argument
95 *polarity = GPIO_ACTIVE_LOW; in int3472_get_func_and_polarity()
99 *polarity = GPIO_ACTIVE_LOW; in int3472_get_func_and_polarity()
103 *polarity = GPIO_ACTIVE_HIGH; in int3472_get_func_and_polarity()
107 *polarity = GPIO_ACTIVE_HIGH; in int3472_get_func_and_polarity()
111 *polarity = GPIO_ACTIVE_HIGH; in int3472_get_func_and_polarity()
115 *polarity = GPIO_ACTIVE_HIGH; in int3472_get_func_and_polarity()
161 u32 polarity; in skl_int3472_handle_gpio_resources() local
184 int3472_get_func_and_polarity(type, &func, &polarity); in skl_int3472_handle_gpio_resources()
194 polarity ^= GPIO_ACTIVE_LOW; in skl_int3472_handle_gpio_resources()
198 (polarity == GPIO_ACTIVE_HIGH) ? "high" : "low"); in skl_int3472_handle_gpio_resources()
203 ret = skl_int3472_map_gpio_to_sensor(int3472, agpio, func, polarity); in skl_int3472_handle_gpio_resources()
209 ret = skl_int3472_register_gpio_clock(int3472, agpio, polarity); in skl_int3472_handle_gpio_resources()
215 ret = skl_int3472_register_pled(int3472, agpio, polarity); in skl_int3472_handle_gpio_resources()