Re: [PATCH 08/15] genirq: Add runtime power management support for IRQ chips

From: Linus Walleij
Date: Tue Mar 22 2016 - 07:47:04 EST


On Thu, Mar 17, 2016 at 4:28 PM, Marc Zyngier <marc.zyngier@xxxxxxx> wrote:
> On 17/03/16 15:13, Jon Hunter wrote:

>>>> struct irq_chip {
>>>> + struct device *parent;
>>>
>>> Nit: Please don't call this just "parent". We have parent fields in
>>> irq_data and irq_domain structures, and they always are a pointer to the
>>> same type, indicating some form of stacking. Here, we're pointing to a
>>> different type altogether...
>>>
>>> How about calling it "dev", or "device" instead? It would make it much
>>> clearer that when crossing that pointer, we're in another subsystem
>>> altogether.
>>
>> I will defer to Linus W here, as it was his request we make this
>> 'parent' and not 'dev'. See ...
>>
>> http://marc.info/?l=linux-kernel&m=145035839623442&w=2
>
> Well, that contradicts the way use use the word "parent" in the IRQ
> subsystem, I guess. I'd settle for parent_device or something along
> those lines (but keep in mind I'm really bad at naming things).
>
> Anyway, enough bikeshedding... ;-)

I'm happy with .parent_device.

Yours,
Linus Walleij