Re: [PATCH v2 1/2] pinctrl: intel: make irq_chip immutable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 18, 2022 at 11:46:06AM +0300, Andy Shevchenko wrote:
> On Wed, May 18, 2022 at 08:08:17AM +0300, Mika Westerberg wrote:
> > On Tue, May 17, 2022 at 07:38:19PM +0300, Andy Shevchenko wrote:
> > > +static const struct irq_chip intel_gpio_irq_chip = {
> > > +	.name		= "intel-gpio",
> > > +	.irq_ack	= intel_gpio_irq_ack,
> > > +	.irq_mask	= intel_gpio_irq_mask,
> > > +	.irq_unmask	= intel_gpio_irq_unmask,
> > > +	.irq_set_type	= intel_gpio_irq_type,
> > > +	.irq_set_wake	= intel_gpio_irq_wake,
> > > +	.flags		= IRQCHIP_MASK_ON_SUSPEND | IRQCHIP_IMMUTABLE,
> > > +	GPIOCHIP_IRQ_RESOURCE_HELPERS,
> > > +};
> > 
> > You still have the inconsistent alignment here.
> 
> I'm not sure what problem do you see.

I mean the tab alignment you use:

	.name		= "intel-gpio",
	.irq_ack	= intel_gpio_irq_ack,
	.irq_mask	= intel_gpio_irq_mask,
	.irq_unmask	= intel_gpio_irq_unmask,
	.irq_set_type	= intel_gpio_irq_type,
	.irq_set_wake	= intel_gpio_irq_wake,

All the other struct initializations in the driver use this style (and I
prefer it too):

	.name = "intel-gpio",
	.irq_ack = intel_gpio_irq_ack,
	.irq_mask = intel_gpio_irq_mask,
	.irq_unmask = intel_gpio_irq_unmask,
	.irq_set_type = intel_gpio_irq_type,
	.irq_set_wake = intel_gpio_irq_wake,

Hope this explains.



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux