Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759081AbcCVLrB (ORCPT ); Tue, 22 Mar 2016 07:47:01 -0400 Received: from mail-oi0-f46.google.com ([209.85.218.46]:33120 "EHLO mail-oi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758674AbcCVLqv (ORCPT ); Tue, 22 Mar 2016 07:46:51 -0400 MIME-Version: 1.0 In-Reply-To: <56EACD21.20309@arm.com> References: <1458224359-32665-1-git-send-email-jonathanh@nvidia.com> <1458224359-32665-9-git-send-email-jonathanh@nvidia.com> <56EAC6E8.1070806@arm.com> <56EAC98A.7090405@nvidia.com> <56EACD21.20309@arm.com> Date: Tue, 22 Mar 2016 12:46:50 +0100 Message-ID: Subject: Re: [PATCH 08/15] genirq: Add runtime power management support for IRQ chips From: Linus Walleij To: Marc Zyngier Cc: Jon Hunter , Thomas Gleixner , Jason Cooper , =?UTF-8?Q?Beno=C3=AEt_Cousson?= , Tony Lindgren , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Stephen Warren , Thierry Reding , Kevin Hilman , Geert Uytterhoeven , Grygorii Strashko , Lars-Peter Clausen , "linux-tegra@vger.kernel.org" , Linux-OMAP , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1070 Lines: 30 On Thu, Mar 17, 2016 at 4:28 PM, Marc Zyngier 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