Re: [PATCH v2 07/10] gpio: stmpe: rework registers access

2016-04-29 Thread Linus Walleij
On Thu, Apr 28, 2016 at 2:13 PM, wrote: > From: Patrice Chotard > > This update allows to use registers map as following : > regs[reg_index + offset] instead of > regs[reg_index] + offset > > This makes code clearer and will facilitate the addition of STMPE1600 > on which LSB and MSB registers

[PATCH v2 07/10] gpio: stmpe: rework registers access

2016-04-28 Thread patrice.chotard
From: Patrice Chotard This update allows to use registers map as following : regs[reg_index + offset] instead of regs[reg_index] + offset This makes code clearer and will facilitate the addition of STMPE1600 on which LSB and MSB registers are respectively located at addr and addr + 1. Despite fo