lkml.org 
[lkml]   [2020]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4 2/4] mfd: Support ROHM BD9576MUF and BD9573MUF
On Wed, 04 Nov 2020, Lee Jones wrote:

> On Wed, 28 Oct 2020, Matti Vaittinen wrote:
>
> > Add core support for ROHM BD9576MUF and BD9573MUF PMICs which are
> > mainly used to power the R-Car series processors.
> >
> > Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
> > ---
> > drivers/mfd/Kconfig | 11 +++
> > drivers/mfd/Makefile | 1 +
> > drivers/mfd/rohm-bd9576.c | 130 +++++++++++++++++++++++++++++++
> > include/linux/mfd/rohm-bd957x.h | 59 ++++++++++++++
> > include/linux/mfd/rohm-generic.h | 2 +
> > 5 files changed, 203 insertions(+)
> > create mode 100644 drivers/mfd/rohm-bd9576.c
> > create mode 100644 include/linux/mfd/rohm-bd957x.h

[...]

> > +static const struct regmap_range volatile_ranges[] = {
> > + {
> > + .range_min = BD957X_REG_SMRB_ASSERT,
> > + .range_max = BD957X_REG_SMRB_ASSERT,
> > + },
> > + {
>
> The way you space your braces is not consistent.
>
> > + .range_min = BD957X_REG_PMIC_INTERNAL_STAT,
> > + .range_max = BD957X_REG_PMIC_INTERNAL_STAT,
> > + },
> > + {
> > + .range_min = BD957X_REG_INT_THERM_STAT,
> > + .range_max = BD957X_REG_INT_THERM_STAT,
> > + },
> > + {
> > + .range_min = BD957X_REG_INT_OVP_STAT,
> > + .range_max = BD957X_REG_INT_SYS_STAT,
> > + }, {
> > + .range_min = BD957X_REG_INT_MAIN_STAT,
> > + .range_max = BD957X_REG_INT_MAIN_STAT,
> > + },
> > +};

Don't forget about this.

I would prefer to have the braces on the same line (even if it means
you have to change an extra line when editing), but I'm not 100% dead
set on it. Consistency however, I am.

--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog

\
 
 \ /
  Last update: 2020-11-05 09:24    [W:0.126 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site