From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Holler Subject: Re: [PATCH v4 1/2] gpio/omap: don't create an IRQ mapping for every GPIO on DT Date: Mon, 29 Jul 2013 12:48:37 +0200 Message-ID: <51F64885.1020403@ahsoftware.de> References: <1372433223-9053-1-git-send-email-javier.martinez@collabora.co.uk> <51F4F973.8000303@ahsoftware.de> <51F529D6.8030809@ahsoftware.de> <51F54A98.80601@ahsoftware.de> <51F5FC8E.9010007@ahsoftware.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from h1446028.stratoserver.net ([85.214.92.142]:49598 "EHLO mail.ahsoftware.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750959Ab3G2KtV (ORCPT ); Mon, 29 Jul 2013 06:49:21 -0400 Received: from eiche.ahsoftware (p57B216E0.dip0.t-ipconnect.de [87.178.22.224]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.ahsoftware.de (Postfix) with ESMTPSA id AAE3C423C2BE for ; Mon, 29 Jul 2013 12:49:19 +0200 (CEST) In-Reply-To: Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Linus Walleij Cc: Javier Martinez Canillas , Javier Martinez Canillas , Grant Likely , Jon Hunter , Santosh Shilimkar , Tony Lindgren , Jean-Christophe PLAGNIOL-VILLARD , Enric Balletbo Serra , Linux-OMAP , Florian Vaussard , Aaro Koskinen , Balaji T K Am 29.07.2013 11:05, schrieb Linus Walleij: > On Mon, Jul 29, 2013 at 7:24 AM, Alexander Holler wrote: > >> Maybe it might be worth to suggest using/returning NO_IRQ in (new) patches >> instead of zero. That would make it very clear that the value 0 isn't to be >> used later. > > Using NO_IRQ is also discouraged, and this is because we should > use the if (!irq) design pattern and not if (irq == NO_IRQ). So the article on lkml is already outdated. After reading the article, I had the impression that using NO_IRQ (at least for return codes) is encouraged. Regards, Alexander Holler