On Wed, 27 Apr 2016, Laxman Dewangan wrote:
On Wednesday 27 April 2016 08:49 PM, Lee Jones wrote:Yes. Although, if there are no run-time ordering dependencies, I
On Wed, 30 Mar 2016, Laxman Dewangan wrote:Yaah, I want to have this in current cycle.
+#define MAX77620_MFD_CELL_RES(_name, _res) \I'm *still* not accepting this.
+ { \
+ .name = (_name), \
+ .resources = (_res), \
+ .num_resources = ARRAY_SIZE((_res)), \
+ }
+If you want this submission to be accepted this cycle, you're going to
+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"),
+};
have to convert this to the traditional way of defining MFD children.
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 */
},
};
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.