Re: [PATCH 1/2] regulator: ltc3676: Simplify .readable_reg and .writable_reg callbacks

2019-02-15 Thread Tim Harvey
On Fri, Feb 15, 2019 at 3:54 AM Axel Lin wrote: > > Use case range for continuous range to make the code shorter. > The .readable_reg and .writable_reg implementation are exactly the same, > so use a common ltc3676_readable_writeable_reg function instead. > > Signed-off-by: Axel Lin > --- > driv

[PATCH 1/2] regulator: ltc3676: Simplify .readable_reg and .writable_reg callbacks

2019-02-15 Thread Axel Lin
Use case range for continuous range to make the code shorter. The .readable_reg and .writable_reg implementation are exactly the same, so use a common ltc3676_readable_writeable_reg function instead. Signed-off-by: Axel Lin --- drivers/regulator/ltc3676.c | 63 +++