Searched refs:KP_SEL (Results 1 – 1 of 1) sorted by relevance
29 #define KP_SEL(x) (0xFFFF >> (16 - x)) /* 2^x-1 */ macro337 ret = adp5588_write(client, KP_GPIO1, KP_SEL(pdata->rows)); in adp5588_setup()338 ret |= adp5588_write(client, KP_GPIO2, KP_SEL(pdata->cols) & 0xFF); in adp5588_setup()339 ret |= adp5588_write(client, KP_GPIO3, KP_SEL(pdata->cols) >> 8); in adp5588_setup()