From patchwork Wed Sep 20 14:08:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 113129 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp813509qgf; Wed, 20 Sep 2017 07:08:25 -0700 (PDT) X-Received: by 10.99.181.79 with SMTP id u15mr2333279pgo.116.1505916505564; Wed, 20 Sep 2017 07:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505916505; cv=none; d=google.com; s=arc-20160816; b=CuQCmNibRmWSuU/HFVOg2tOJYoz26EQINxrRXZpjELsdSArWJcVUCknM4tzz77uYk8 2TOGbc2+9+W9Bw3ecSYIxZNivIPUUVHHfEdSVZZBBdHvHZizR7SyomwiZplDtRdh3nJF bFnlRUXk4aNVXS40A7IWrpgqNXnPKF2/JRA6yyHQ/GyEyZpzw2r1DBxI3XuhKLX+ex3O kbwHDDbMNlfrrelP5dnoGrA+fiGg9+DaELdjcqJWBahtW28cD4sfaQbx7/vzYiWWDRXV bFaAMq4B2stVqnWBeRwRzdN1pL4Tf2T9ocjBQeD5ZsclPBqFj6L3Tzj+YXtXDZplB0Jp wDUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=9psLBSHlKO97h33PWkqpSPweMYiqF0d6G27m9+oYuY4=; b=col8Xh9TVo9xtrATus5K0NAC80Qq+jn/PGL9B7rRu3JlOuFH/UL0zrcvJn7lhe8Jk5 wWi22Nz8QTLZfoCuKYTDiEKjY0zim5AhRuKpHM9zG1tgevC3OJOFS4hEAb/CrspAN6Cx yuqVluKewcsR6irKpnPGYeEcLFP0Z4X0BVr7AORsaoc/kPHKyn9Iz56hWB+Xw7In45uF xtORtB2lEb5LEKflR4RewzYtgeSYaYJdAs3QOG4IerTx3SCfNO7Jowkt8hp25BwD090S ee03HqASnXk3bKXi9v8QKlVqyjwNaGTlOciwdzip047AseHl8cz1XhJ1CyF2H0Sp8tWO Tx2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=napBNC6w; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-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 y189si3102121pgb.640.2017.09.20.07.08.25; Wed, 20 Sep 2017 07:08:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=napBNC6w; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751551AbdITOIY (ORCPT + 5 others); Wed, 20 Sep 2017 10:08:24 -0400 Received: from mail-wm0-f51.google.com ([74.125.82.51]:46277 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750892AbdITOIY (ORCPT ); Wed, 20 Sep 2017 10:08:24 -0400 Received: by mail-wm0-f51.google.com with SMTP id i189so7602425wmf.1 for ; Wed, 20 Sep 2017 07:08:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=+GC517WGNoi1139+o0LSTVcVIng80pAS5TLSqxWnPvY=; b=napBNC6wY0JE6gh6Z978HQkXq9kyS3jTUSWL0C8ofXKKHl2UwUI/q7+Cvr2jrQkUbZ CY6ivMly+zijNQi3Cyx5VPmpHkCt1IzCJo7ew1Q63rkNX8gARAMvzM7Owq0otaOC8waY EPR+raiCW2CkWags9SZWshlfuDGfSchBcfjZzV0sSORVl6pfBEkbHKwyyAPsN4rHcyBf i/+g3Ms6Ovr70bDQmVWgE8PqmvIxn7+hBlj2BfrhNmNlmLG+v746p5nidU5CPsWi0ERS A3d9AdT+Ricrhrhjph7uuGIWbQSQUu5x9AwbAvfnZ1ssSHM5fmrfbl1ADszUwpNLQNWs V7xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=+GC517WGNoi1139+o0LSTVcVIng80pAS5TLSqxWnPvY=; b=P6JTIfIY63r0W4pANLz0IB+BWCrNmdsmsGncBapMmuwNhEWw9vBl72aT7oyqaYweoM TiNdl1MsMylRxfqn/v+yGzz5AA/D2u9YcFvBWb45HsSv26HGqB5QFvPGMn4Or76CDL65 LnbMdtNL3FjxCPveXJgBz6sEEnUYpy60YXOzPfojSJHae8yICSLm0lMdoYilxv2AHkBs sS/0nsgGjt1je1JbLUUDrx+R6qV4x3JNap5FjTEBpoZCrgBj6g89nh1ftDF1B6URI4nQ mNmgx93ajUvy3DtkX9wZiwU4XtOil8NAEYAhHQwuCPjwVd0uTwYBC084fYWXkLKq8nO8 oXAw== X-Gm-Message-State: AHPjjUgKeuqgpLJza5RVIt7ZaLut53JnLR/LFcVydQ84JM0SZjkCeopX jZoepcxfhQ6dJgaPh5TRoSse8w== X-Google-Smtp-Source: AOwi7QBkBGn5KbmKuSAuoSY1C+wFtB1Dqd8ciRUyZe9l+H2t0AnhAWB3SgGDLJNmV139hkPMGAafbQ== X-Received: by 10.28.57.197 with SMTP id g188mr3743241wma.92.1505916502862; Wed, 20 Sep 2017 07:08:22 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id b89sm2034459wrd.42.2017.09.20.07.08.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Sep 2017 07:08:22 -0700 (PDT) From: Jerome Brunet To: Linus Walleij , Kevin Hilman , Carlo Caione Cc: Jerome Brunet , linux-gpio@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: meson: fix incorrect usage of ENOSYS Date: Wed, 20 Sep 2017 16:08:15 +0200 Message-Id: <20170920140815.20776-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.13.5 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org ENOSYS is special and should only be used for incorrect syscall number. It is not the case here. let's use ENOTSUPP instead. Signed-off-by: Jerome Brunet --- drivers/pinctrl/meson/pinctrl-meson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.13.5 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b/drivers/pinctrl/meson/pinctrl-meson.c index c9cd54de0449..71bccb7acbf8 100644 --- a/drivers/pinctrl/meson/pinctrl-meson.c +++ b/drivers/pinctrl/meson/pinctrl-meson.c @@ -399,7 +399,7 @@ static int meson_pinconf_group_set(struct pinctrl_dev *pcdev, static int meson_pinconf_group_get(struct pinctrl_dev *pcdev, unsigned int group, unsigned long *config) { - return -ENOSYS; + return -ENOTSUPP; } static const struct pinconf_ops meson_pinconf_ops = {