Message ID | 20170714093129.1366900-1-arnd@arndb.de |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp654187qge; Fri, 14 Jul 2017 02:33:03 -0700 (PDT) X-Received: by 10.99.143.21 with SMTP id n21mr13840978pgd.145.1500024782935; Fri, 14 Jul 2017 02:33:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500024782; cv=none; d=google.com; s=arc-20160816; b=ErP8X77T+7jB7/LShG3OwdwRjCpmiU7Ubev+NOolCZe8TCHeiigjVcyC8sIBTMfMrb 2sYvG3Vx6r7iZcznW/0O3qei550ozRjOKOHN4YsLyYHXlmGrX7g8ch+Si9nZnnXL2fZY +IO8Iu/DULWbSW2JKkT2UibpD5Xu0nuJRjR9jxKBdjtES+QjylyvKiFNbO5viNpN/FXc fOePXJaujHMUW6ry57h19hggFrpXR7SyGUF1TwG1XcSmlYJZ5hXV9W17yKVWbRFCxSXL Ah/b6YYVYjAt+yEHrt8chdKYdz6i1l5hYAoA/T8K1n8KioGEYmxApLOnzOtk4+aa3mb+ Khbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=iCOHBOtuWle0M6GHyaet/KMkNZmQYgJP4J90zDBxaho=; b=rg4KJD1yEXRaFKWRgivDlZCazpXUzsialRjEGNSb23ljAoK3mbNlpE/kPtkqyRvI45 D9FvIqzJbN7J0nI588zBd3HnsP3tQE6C0xe8KTbknHk3r7Meyf/b2De23azz1SEX34c1 C/Rp+pxmO5H/4naFdSSJ9NdZLnhCwiCF2tHCDD29py+KDDWlC5IJdXaRd2xFMjfq+myi zcyRKOG1Y4GE2Pwc9KOGeT4bYI/cXb1+YGWbF+w+dKsxOvgsejF6oh0UgqkGWGH747ix WM6I96b+eUxGcHB7yMxib0c+tYnhnmKNRnCUwRmP9GaLGt8u8WJ4ardhMVFQMj8LqVLW QNIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f35si6483985plh.9.2017.07.14.02.33.02; Fri, 14 Jul 2017 02:33:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753744AbdGNJcp (ORCPT <rfc822;georgi.djakov@linaro.org> + 25 others); Fri, 14 Jul 2017 05:32:45 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:52310 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753574AbdGNJcm (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 14 Jul 2017 05:32:42 -0400 Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id 0M8zUb-1dMLUX3fJ7-00CQMO; Fri, 14 Jul 2017 11:31:33 +0200 From: Arnd Bergmann <arnd@arndb.de> To: linux-kernel@vger.kernel.org, Lars-Peter Clausen <lars@metafoo.de>, Michael Hennerich <Michael.Hennerich@analog.com>, Jonathan Cameron <jic23@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org>, Tejun Heo <tj@kernel.org>, Guenter Roeck <linux@roeck-us.net>, linux-ide@vger.kernel.org, linux-media@vger.kernel.org, akpm@linux-foundation.org, dri-devel@lists.freedesktop.org, Arnd Bergmann <arnd@arndb.de>, stable@vger.kernel.org, Hartmut Knaack <knaack.h@gmx.de>, Peter Meerwald-Stadler <pmeerw@pmeerw.net>, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org Subject: [PATCH 10/14] staging:iio:resolver:ad2s1210 fix negative IIO_ANGL_VEL read Date: Fri, 14 Jul 2017 11:31:03 +0200 Message-Id: <20170714093129.1366900-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170714092540.1217397-1-arnd@arndb.de> References: <20170714092540.1217397-1-arnd@arndb.de> X-Provags-ID: V03:K0:7kUZJ7IPymt25S8JQd8PtHIZcXHdXNXETpAme/TzfjsnvVhbWSg 9rc+vbvWJSliTiAs45fkeWbTvpV0c4eJxrM3SSNEpuS0cp1jtnJ4hNKPTnXw8FRejQD4Vam ebs+Xp4m2YdRHThH8Wnua+aQcjiGPrRHqhdkSm7ac3ZgecAIySFTWYif8n3peng7CLmrU53 lpA0Dkf09z6iqvQcfRxXg== X-UI-Out-Filterresults: notjunk:1; V01:K0:UmAmo0eEBxM=:5kaNQ1dp2U2OK1jgvtzYAk fpwNa5Qn641OVBY3rNpKqReuSPoQvgmkeNnyrE6Z2p1BMLJf3Dy7x6LwSM8kLpugMFvP8CAiE 5ohfkRoAyB/ElRcRq345G4rgjSJGGr+DgcedABxYoJsnSuSAmGEWlz76Q0CYC6DF9kDRTbkXj IxVI6mRTOVsouGiUdcpQknFe01A/bwh1ptebS6+7kz+nt1yuOAlMgAr23cWWe6U8gEEAa76g9 x/kO6P2N8Vbw3gwf/JpxHYXsVK13ulFfiiDiZVQYEzoXY7sKK619Xl3IjHOSUi3efRs095P2Y EYAvGO5pHwfhtB50IKczGt2qZdmiM3/j7Tcy8zwjL5f/dw0w/UXlApmD92JihKDR2p8hBUrrZ MQ9Z4Qdtjr6PynyTuQj8nVrBoT8FAqDN6Nk1AInnLarAOixOtMatQbwm+pTKs5QTtFnWdcdZy exYdDlAEa3X9knGAyg5hnOvaAnySicnaTziyep9d1R0DR3vaeNHfYPLHS0xRMTH7JxIj0GRRN lW3w33ZBWEaCV8GHU0+ymbGLW6ZdflIC7P0VB2j8wrY/sMRarHe4/g33AROmtTi/fzYtkO7tE hqLW3qB8EC8bi7DUYSkF6UlI8EkbDg15t6DIgTjZEvmTuB+OjuZptZ2vxOpV8fmngjKjXxJfM /4g8dbu2I7GRB6vPQksQC/UfqA0FkHfwS6SvwBz6Zn0PysnI4Pd/5TE0AWk+kTEDDVTHe75fH oucMjrFAF3gi2gXjlNya0Jccew5ZXAX50dW0rw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/staging/iio/resolver/ad2s1210.c b/drivers/staging/iio/resolver/ad2s1210.c index a6a8393d6664..3e00df74b18c 100644 --- a/drivers/staging/iio/resolver/ad2s1210.c +++ b/drivers/staging/iio/resolver/ad2s1210.c @@ -472,7 +472,7 @@ static int ad2s1210_read_raw(struct iio_dev *indio_dev, long m) { struct ad2s1210_state *st = iio_priv(indio_dev); - bool negative; + u16 negative; int ret = 0; u16 pos; s16 vel;
gcc-7 points out an older regression: drivers/staging/iio/resolver/ad2s1210.c: In function 'ad2s1210_read_raw': drivers/staging/iio/resolver/ad2s1210.c:515:42: error: '<<' in boolean context, did you mean '<' ? [-Werror=int-in-bool-context] The original code had 'unsigned short' here, but incorrectly got converted to 'bool'. This reverts the regression and uses a normal type instead. Fixes: 29148543c521 ("staging:iio:resolver:ad2s1210 minimal chan spec conversion.") Cc: stable@vger.kernel.org Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/staging/iio/resolver/ad2s1210.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0