Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4467962pxf; Tue, 16 Mar 2021 14:26:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxU+seCeNabh8lsQXtpsAsqtZQcXjBKYs3U84AqdJ2kNLIvHNr1qOE7uuMLWxfICQY269tx X-Received: by 2002:a05:6402:1517:: with SMTP id f23mr39319800edw.272.1615930013371; Tue, 16 Mar 2021 14:26:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615930013; cv=none; d=google.com; s=arc-20160816; b=1J6FTd42nXKpQmKrDVaihJNDYPEz6muGN1qXjGVyaRI28su+ZkQ+laXVgJ+jt4wI25 BKwwMhkCqt/a+6GPeh9hHywqUC/AkijXc/vdPlkIvGXXK/Z0gGhZmaoKl3wLSiHg5knB pEbuSR1QxUnwO35M59/fW4qwMRKZ2VoxVqgsV+FYnLZ7Iakzxt1pdYEQfJ16owwN1tGW mVg5kZiNV0hUab/Dq1dKOwGxUKsX7WuYgnS4E3Ke2OOXB8yYrpGwLJS80FUWhqZaqgsB 8UQvEzU4YMvPYArz3Mj14R2W70s+7WG1h2aYK/faumCZrF+abhHzwaZPxvOZx+3W4XtP BkOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=ofrf9Zc8AZw06urF/eFU5kkSyWWDSEJNxkl1iNmVrPY=; b=O6gevb/nIMUAFHVvlttm8rnZ6z502ApeZF+s3QWur8LAODhqJn9MsDheyukqyRzAjJ 4qcR9N+VdLBpY/4nLUiJIj4O3b3h5+V9sbTTac2CYyn8DWSUlDiGJLDRPdvSRmp8EmXR d3uMK6T0x9vO+lDqHg0CzoacXnGWET7z7xPBXEC7biA9C9jOT9HyzFd6FOpafoFmrll0 Z1OMVL59MTVB22IqB39ITAbtmsXmiJc6GT8BhV6IQEbMWQFqlangEmFeY+pbleoSASPD YPaA/Ba7Akc/AJmolICqXlNA9K0ioOwR29TFGk/E+PCDe3Uh+ypCS1WVXv/BNCQfCDte BCTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=hJcgcZMg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si15112149edc.296.2021.03.16.14.26.31; Tue, 16 Mar 2021 14:26:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=hJcgcZMg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230100AbhCPUZi (ORCPT + 99 others); Tue, 16 Mar 2021 16:25:38 -0400 Received: from smtp-fw-4101.amazon.com ([72.21.198.25]:4863 "EHLO smtp-fw-4101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230031AbhCPUZF (ORCPT ); Tue, 16 Mar 2021 16:25:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1615926306; x=1647462306; h=from:to:cc:subject:date:message-id:mime-version; bh=ofrf9Zc8AZw06urF/eFU5kkSyWWDSEJNxkl1iNmVrPY=; b=hJcgcZMg7gLsq8tvZlnbqqS/rOAohuFkZP7Ymq1g99Zn3ZPngJVHnneb iwz/isFMy8YLIR/vKaj9Gt1qdYnml9oK3k5U1N8yjpb52wDdiSg1S/BJ0 sx6qt7cAKgnV0WneVoOuw3pfGKJSDNu48vO9+1YfrOnPtGHQmzY7H9620 8=; X-IronPort-AV: E=Sophos;i="5.81,254,1610409600"; d="scan'208";a="93586867" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-2b-baacba05.us-west-2.amazon.com) ([10.43.8.2]) by smtp-border-fw-out-4101.iad4.amazon.com with ESMTP; 16 Mar 2021 20:24:58 +0000 Received: from EX13D19EUB003.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-2b-baacba05.us-west-2.amazon.com (Postfix) with ESMTPS id 9590AA188C; Tue, 16 Mar 2021 20:24:56 +0000 (UTC) Received: from u8a88181e7b2355.ant.amazon.com (10.43.160.48) by EX13D19EUB003.ant.amazon.com (10.43.166.69) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 16 Mar 2021 20:24:49 +0000 From: Hanna Hawa To: , , CC: , , , , , , , , , , , Subject: [PATCH v2 0/3] Fix pinctrl-single pcs_pin_dbg_show() Date: Tue, 16 Mar 2021 22:24:31 +0200 Message-ID: <20210316202434.27555-1-hhhawa@amazon.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.160.48] X-ClientProxiedBy: EX13D02UWB003.ant.amazon.com (10.43.161.48) To EX13D19EUB003.ant.amazon.com (10.43.166.69) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These patches fix the pcs_pin_dbg_show() function for the scenario where a single register controls multiple pins (i.e. bits_per_mux != 0). Additionally, the common formula is moved to a separate function to allow reuse. Changes since v1: ----------------- - remove unused variable in In function 'pcs_allocate_pin_table' (Reported-by: kernel test robot ) Hanna Hawa (3): pinctrl: pinctrl-single: remove unused variable pinctrl: pinctrl-single: remove unused parameter pinctrl: pinctrl-single: fix pcs_pin_dbg_show() when bits_per_mux != 0 drivers/pinctrl/pinctrl-single.c | 76 ++++++++++++++++++++------------ 1 file changed, 47 insertions(+), 29 deletions(-) -- 2.17.1