[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110406071457.GC284@kurt.e-circ.dyndns.org>
Date: Wed, 6 Apr 2011 09:14:57 +0200
From: Kurt Van Dijck <kurt.van.dijck@....be>
To: Enric Balletbo i Serra <eballetbo@...ebcn.com>
Cc: netdev@...r.kernel.org, socketcan-core@...ts.berlios.de,
wg@...ndegger.com
Subject: Re: [PATCH/RFC] can: mcp251x: Allow pass IRQ flags through
platform data.
On Tue, Apr 05, 2011 at 07:08:41PM +0200, Enric Balletbo i Serra wrote:
> ret = request_threaded_irq(spi->irq, NULL, mcp251x_can_ist,
> - IRQF_TRIGGER_FALLING, DEVICE_NAME, priv);
> + pdata->irq_flags ? pdata->irq_flags : IRQF_TRIGGER_FALLING,
> + DEVICE_NAME, priv);
IMHO, doing like this looks just a tiny bit cleaner
> + pdata->irq_flags ?: IRQF_TRIGGER_FALLING,
> + DEVICE_NAME, priv);
That's really the only remark :-)
Regards,
Kurt
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists