From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Keepax Subject: Re: [PATCH 52/54] sound: soc: wm8903: Be sure to clamp return value Date: Wed, 23 Dec 2015 09:50:22 +0000 Message-ID: <20151223095022.GX6058@localhost.localdomain> References: <1450795849-28642-1-git-send-email-linus.walleij@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Return-path: Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:55254 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752664AbbLWJui (ORCPT ); Wed, 23 Dec 2015 04:50:38 -0500 Content-Disposition: inline In-Reply-To: <1450795849-28642-1-git-send-email-linus.walleij@linaro.org> Sender: linux-gpio-owner@vger.kernel.org List-Id: linux-gpio@vger.kernel.org To: Linus Walleij Cc: linux-gpio@vger.kernel.org, Liam Girdwood , alsa-devel@alsa-project.org, Mark Brown On Tue, Dec 22, 2015 at 03:50:49PM +0100, Linus Walleij wrote: > As we want gpio_chip .get() calls to be able to return negative > error codes and propagate to drivers, we need to go over all > drivers and make sure their return values are clamped to [0,1]. > We do this by using the ret = !!(val) design pattern. > > Cc: Liam Girdwood > Cc: alsa-devel@alsa-project.org > Cc: Charles Keepax > Cc: Mark Brown > Signed-off-by: Linus Walleij > --- Acked-by: Charles Keepax Thanks, Charles