From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [RFC/PATCH 0/3] TWL4030 IRQ Changes Date: Tue, 28 Dec 2010 17:41:39 +0000 Message-ID: <20101228174138.GA3089@opensource.wolfsonmicro.com> References: <20101228161657.GF2239@legolas.emea.dhcp.ti.com> <1293556459-28613-1-git-send-email-balbi@ti.com> <20101228173604.GH2239@legolas.emea.dhcp.ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20101228173604.GH2239@legolas.emea.dhcp.ti.com> Sender: linux-kernel-owner@vger.kernel.org To: Felipe Balbi Cc: Linux Kernel Mailing List , Linux OMAP Mailing List , Tony Lindgren , David Brownell , Thomas Gleixner List-Id: linux-omap@vger.kernel.org On Tue, Dec 28, 2010 at 07:36:04PM +0200, Felipe Balbi wrote: > when we finally move to struct irq_data, the below could > be used. BTW, Thomas do you have any plans for exposing > irq_data_to_desc() ? The general idea is to move to struct irq_data sooner rather than later (all the existing MFD drivers have already been converted). > -static void twl4030_sih_mask(unsigned irq) > +/* REVISIT define it here until IRQ Subsystem exports its implementation */ > +#define irq_data_to_desc(data) container_of(data, struct irq_desc, irq_data) It looks like all you're using this for is to get the chip_data? If that is the case you're looking for irq_data_get_irq_chip_data() which will go directly from the irq_data to the chip_data. I may have missed something, I only scanned the code.