Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp544007imd; Thu, 1 Nov 2018 01:19:37 -0700 (PDT) X-Google-Smtp-Source: AJdET5f7HEovsWRzb5ipif7Gx04iQ/ZPydyHxfuJjULhqHA+VH32B7WR1qqg6v4weZxnG4oeLHcz X-Received: by 2002:a62:83c2:: with SMTP id h185-v6mr6758583pfe.187.1541060377405; Thu, 01 Nov 2018 01:19:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541060377; cv=none; d=google.com; s=arc-20160816; b=O4qQryS3iKWd3OKNgFXtnrThQ7yE71n/1g9Ubf2Ba9Zahya63g1KpJxInPLR5m8fZi /1XfbGKHdiY8w8FDVRAE2GQaIIWg6p7pG6+htUdVCjViKsuKOSL7OTgsCVddtMY3nMKt 9jH/jmFLkUQyQ+gv7D77q64oP7rlDcYJCwLV3l8U/lPjIcx3s4ScNd6O7VPCB9XluDZV QNswkH6zVjfL/4EE6VkA3A3M3JdikBtNtCpCW+PeOooNtVoGaBfNPh3wfAilTP7KCBcy SC4BkDActKeqxmD6DUCpQEyX+U+jF48uLmX+wITf4PYYkWuM41T4ITsSkO29Yh0kpjWe 58hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=5IHqd7pSMc8dRkFAvH4pAF0lRAk28ieQtEE7JERf89E=; b=GyyeSDO5u6Z2tRmIIx3XUA/taVvgYtPYlmduepkEMWoDxlgqomwTTYH308kRQjfMo1 vD4oW4w8vJEZVEXsUQSvt7hLkEfqV7Z2eaJ4vLePkjLD3nXbbB4blPew8GboYWigN+xX WyeFPk6fJNvWHQ6BSwtkBHLBfeja/t99CHzGPP0WYSaXFsT6PcZZU/4yRpOXPVLEgGg0 s0TweOWx082q9Re3/fegfGJoCIJ0znKr3UuEcTkmSdgQdKdZeCLG/YUGW+RlHlJzVRcF q6DA5+m5LkRVWVXCGkpJsfrdaL9HLGO9ZkE9CyrEr+nVv17D/hbh0QhvxJcrJukJ7U/E hwoA== 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: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w11si2040259pgf.452.2018.11.01.01.19.21; Thu, 01 Nov 2018 01:19:37 -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 S1727965AbeKARU4 (ORCPT + 99 others); Thu, 1 Nov 2018 13:20:56 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:55863 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727704AbeKARUz (ORCPT ); Thu, 1 Nov 2018 13:20:55 -0400 Received: from [192.168.178.52] ([109.104.44.235]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MjjGV-1fp5pg2ymh-00lDlM; Thu, 01 Nov 2018 09:18:35 +0100 Received: from [192.168.178.52] ([109.104.44.235]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MjjGV-1fp5pg2ymh-00lDlM; Thu, 01 Nov 2018 09:18:35 +0100 Subject: Re: [PATCH] pinctrl: bcm2835: Use define directive for BCM2835_PINCONF_PARAM_PULL To: Nathan Chancellor , Linus Walleij Cc: Eric Anholt , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, linux-gpio@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Nick Desaulniers References: <20181101004653.7552-1-natechancellor@gmail.com> From: Stefan Wahren Message-ID: <4619d04e-3f17-f1d8-2cca-a9b62f063d75@i2se.com> Date: Thu, 1 Nov 2018 09:18:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181101004653.7552-1-natechancellor@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Provags-ID: V03:K1:0XryzxZInnGOdhDTgdmrj/jwdSEcY2efwlwvsdI0nYExYmEF/pO CGDsK9RPo5TnbDZaf3wasrCqE8Z8YVFlp2EOiEQEw7EURo4IWtWzaBSHQ5d3DYt18tnCldz MCOi69jO63k4CXsB29V3nfVDjPxhuKuf48nzhJ2F/GJp9u5Y1/WfTjC3PlBZNYO28bhCJOW UU56+143syn9Z+bL/Lfsg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V01:K0:X7eWaRVH0L0=:pJ5AULNYDHyP/wtlOpEhUq 7Hr8x+rZOWedn/pJLBVf4XChfY4uot5HyxOkdKQGMqK42STAN6ajnFxYnmGhWzzCaGry/FUlH 7PHataT9qhm5UkTGXg09ui5zm84Mo1hhomm0shDEq9YEsX1OOGaoVePPxvHTzKW/xUX16zc2L ufgap63dUpruSR1/m1mcaX3/DptCOr2ry8bfUZDaqBDCf345UeSjkdruk6P7TgBkbu6lIILIV 5+i5cTMyiimo3+E+1on6sm8kcMmZbhVGGED1+BhcKihQuGsYzHPxlWyHwl2WO6xqGWdyDMI/C q9La4iurDwH0WEL/fAINvzBMMY9mYCDagfYLwqisnj4O/lElDGIoZx8qkSYsvVy2uTVpFzI5o QieNZHUWpqyevpAmR0+iUwq7Ge0oz03txkFsyhnNEwZ7j/5Vh0vjie/YaagCGNrBchLiEAABJ LG0bLwvdvM3rgtbDqCQC6O1E9QMFzmosc4AX8TnptzaYVXc4tcY3PxZILXDfj4kT3t99ALOJ3 ucsgNvusraonqYitjqXRRM1/Lu25CU51HWaJgqcqfftTudfsWDeScw4uSW6+cJ5evbUbQ/Or3 f8VQ8X59mwLnso140MgKlYpEVw+8/n2sE5OvV0zZ6MfqikENhPMmnRh0W/6ot+gegKzJNKWkB AOpSFXYZ7qlq/FcYNKAYsXdmHQD0lO9Pkrc6lmyhL97i/RIIXtvGkh3jNJNbH3dSNExpSAKID oDuOJRV4DDVpo/f5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 01.11.18 um 01:46 schrieb Nathan Chancellor: > Clang warns when one enumerated type is implicitly converted to another: > > drivers/pinctrl/bcm/pinctrl-bcm2835.c:707:40: warning: implicit > conversion from enumeration type 'enum bcm2835_pinconf_param' to > different enumeration type 'enum pin_config_param' [-Wenum-conversion] > configs[0] = pinconf_to_config_packed(BCM2835_PINCONF_PARAM_PULL, pull); > ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ > 1 warning generated. > > It is expected that pinctrl drivers can extend pin_config_param because > of the gap between PIN_CONFIG_END and PIN_CONFIG_MAX so this conversion > isn't an issue. Most drivers that take advantage of this define the > PIN_CONFIG variables as constants, rather than enumerated values. Do the > same thing here so that Clang no longer warns. > > Signed-off-by: Nathan Chancellor > --- > Acked-by: Stefan Wahren