Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1389898

Re: [PATCH V10 2/6] mfd: max77620: add core driver for MAX77620/MAX20024

From Lee Jones <lee.jones@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH V10 2/6] mfd: max77620: add core driver for MAX77620/MAX20024
Date 2016-04-28 11:00 +0200
Message-ID <rsPXI-hT-17@gated-at.bofh.it> (permalink)
References (1 earlier) <ripBw-6Pd-27@gated-at.bofh.it> <rszzB-3p7-31@gated-at.bofh.it> <rsCH8-61V-3@gated-at.bofh.it> <rsOyB-7CU-9@gated-at.bofh.it> <rsOIi-7Hg-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, 28 Apr 2016, Laxman Dewangan wrote:
> On Thursday 28 April 2016 12:55 PM, Lee Jones wrote:
> >On Wed, 27 Apr 2016, Laxman Dewangan wrote:
> >
> >>On Wednesday 27 April 2016 08:49 PM, Lee Jones wrote:
> >>>On Wed, 30 Mar 2016, Laxman Dewangan wrote:
> >>>
> >>>>+#define MAX77620_MFD_CELL_RES(_name, _res)			\
> >>>>+	{							\
> >>>>+		.name = (_name),				\
> >>>>+		.resources = (_res),				\
> >>>>+		.num_resources = ARRAY_SIZE((_res)),		\
> >>>>+	}
> >>>I'm *still* not accepting this.
> >>>
> >>>>+
> >>>>+static struct mfd_cell max20024_children[] = {
> >>>>+	MAX77620_MFD_CELL_NAME("max20024-pinctrl"),
> >>>>+	MAX77620_MFD_CELL_RES("max20024-gpio", gpio_resources),
> >>>>+	MAX77620_MFD_CELL_NAME("max20024-pmic"),
> >>>>+	MAX77620_MFD_CELL_RES("max77620-rtc", rtc_resources),
> >>>>+	MAX77620_MFD_CELL_RES("max20024-power", power_resources),
> >>>>+	MAX77620_MFD_CELL_NAME("max20024-watchdog"),
> >>>>+	MAX77620_MFD_CELL_NAME("max20024-clock"),
> >>>>+};
> >>>If you want this submission to be accepted this cycle, you're going to
> >>>have to convert this to the traditional way of defining MFD children.
> >>Yaah, I want to have this in current cycle.
> >>Will it be fine as follows? (To have quick agreement)
> >>
> >>static const struct mfd_cell max77620_children[] = {
> >>         {
> >>                 .name = "max77620-pinctrl",
> >>         }, {
> >>                 .name = "max77620-gpio",
> >>                 .resource = gpio_resources,
> >>                 .num_resources = ARRAY_SIZE(gpio_resources),
> >>         }, {
> >>         /* and so on */
> >>         },
> >>};
> >Yes.  Although, if there are no run-time ordering dependencies, I
> >usually like to a) have the one line entries on one line i.e.
> >
> >          { .name = "max77620-pinctrl" }
> >
> >... and b) for all the one line entries to be grouped together and
> >the multi line ones grouped together as well.
> >
> 
> 
> It is turning like as follows:
> 
> static const struct mfd_cell max77620_children[] = {
>         { .name = "max77620-pinctrl", },
>         { .name = "max77620-clock", },
>         { .name = "max77620-pmic", },
>         { .name = "max77620-watchdog", },
>         {
>                 .name = "max77620-gpio",
>                 .resources = gpio_resources,
>                 .num_resources = ARRAY_SIZE(gpio_resources),
>         }, {
>                 .name = "max77620-rtc",
>                 .resources = rtc_resources,
>                 .num_resources = ARRAY_SIZE(rtc_resources),
>         }, {
>                 .name = "max77620-power",
>                 .resources = power_resources,
>                 .num_resources = ARRAY_SIZE(power_resources),
>         }, {
>                 .name = "max77620-thermal",
>                 .resources = thermal_resources,
>                 .num_resources = ARRAY_SIZE(thermal_resources),
>         },
> };
> 
> Will it be fine?

Yes, looks good.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH V10 2/6] mfd: max77620: add core driver for  MAX77620/MAX20024 Lee Jones <lee.jones@linaro.org> - 2016-04-27 17:30 +0200
  Re: [PATCH V10 2/6] mfd: max77620: add core driver for MAX77620/MAX20024 Laxman Dewangan <ldewangan@nvidia.com> - 2016-04-27 20:50 +0200
    Re: [PATCH V10 2/6] mfd: max77620: add core driver for  MAX77620/MAX20024 Lee Jones <lee.jones@linaro.org> - 2016-04-28 09:30 +0200
      Re: [PATCH V10 2/6] mfd: max77620: add core driver for MAX77620/MAX20024 Laxman Dewangan <ldewangan@nvidia.com> - 2016-04-28 09:40 +0200
        Re: [PATCH V10 2/6] mfd: max77620: add core driver for  MAX77620/MAX20024 Lee Jones <lee.jones@linaro.org> - 2016-04-28 11:00 +0200
  Re: [PATCH V10 2/6] mfd: max77620: add core driver for MAX77620/MAX20024 Laxman Dewangan <ldewangan@nvidia.com> - 2016-04-27 21:00 +0200
    Re: [PATCH V10 2/6] mfd: max77620: add core driver for  MAX77620/MAX20024 Lee Jones <lee.jones@linaro.org> - 2016-04-28 09:30 +0200

csiph-web