Searched refs:KP_SEL (Results 1 – 1 of 1) sorted by relevance
167 #define KP_SEL(x) (BIT(x) - 1) /* 2^x-1 */ macro604 ret = adp5588_write(client, KP_GPIO1, KP_SEL(kpad->rows)); in adp5588_setup()608 ret = adp5588_write(client, KP_GPIO2, KP_SEL(kpad->cols) & 0xFF); in adp5588_setup()612 ret = adp5588_write(client, KP_GPIO3, KP_SEL(kpad->cols) >> 8); in adp5588_setup()