Re: mfd: as3711: set regmap config reg counts properly
From: Maciej S. Szmigiero
Date: Sat Feb 13 2016 - 11:08:44 EST
On 11.02.2016 18:07, Lee Jones wrote:
> On Sun, 31 Jan 2016, Maciej S. Szmigiero wrote:
>
>> Regmap config max_register field should contain number of
>> device last register, however num_reg_defaults_raw field
>> should be set to register count instead
>> (usually one register more than max_register).
>>
>> as3711 driver had both of these fields set to the same value,
>> fix this by introducing separate defines for max register
>> number and total count of registers.
>>
>> Signed-off-by: Maciej S. Szmigiero <mail@xxxxxxxxxxxxxxxxxxxxx>
>> ---
>> drivers/mfd/as3711.c | 4 ++--
>> include/linux/mfd/as3711.h | 3 ++-
>> 2 files changed, 4 insertions(+), 3 deletions(-)
>
> These 3 patches should really be submitted as a threaded set, so they
> stay together in one's inbox.
>
> Also, please submit patches using the subject line format expected by
> the subsystem.
>
> `git log --oneline -- <subsystem>` helps with this.
>
> As you're a first time offender, I'll fix this for you this time.
>
> Applied, thanks.
Thanks,
Maciej