From patchwork Tue Apr 30 06:03:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13648394 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AEB6BC4345F for ; Tue, 30 Apr 2024 07:15:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Z5Rt1y7JhsqdiazwRVLquekZh/J0NNj2cPN4it50YT8=; b=D1jxH3fHqerVNp oCm7W6w2NkzwtZST7epKgjZrhxvWsA7WhylL3YKhT7vJiAz2/h94jXcDcx2I1S6wUj37Hn3ippDDp P0NWV1jQcWg4GvW3p4gCtAgEM5uBB+IN86z8IJbK/q1oRe9sC5SfQr6eXWC5uzHCvAzF9dj82VJdx 62WTg4nm3P02sD4kx1LcHcVRikVmizmtWkwpEslrK7alnwcjcyOyAL2FLyMgz2PJyXto4NMCE+vgP E3X4qtBgRJdMiEWiixpqTNlaNalZ/Hhhh1wKBDH4iJODlwC2Si4/eSutt4tF0GY37+Cm+ZCDjrczH JcrERq79+rwy/LDRVB7A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1hi6-00000005OsN-0Oy2; Tue, 30 Apr 2024 07:15:30 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1gaF-00000005DYk-2YVE for linux-arm-kernel@bombadil.infradead.org; Tue, 30 Apr 2024 06:03:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=3f+ijQyeya70KJofDglQNOZzfNHaShj1cgKGVLxvefs=; b=Xtu/HgIJUXybyNDZjKwjBgVgjU 7utMzmcK7NQumn3mpPQgURDxzfr4kVSx+oMz1nyxlezvCYm/JJxOcYMAzx0bfmvHIEAzs6WBvfO9m DJcJ4BEWbwNgUnKkm2IJ0CPkrVQL3KHNPBbCHVVpdhUB4F5r5RabrqY3ro7lfM8phpU5/VLJoq9Xy PW58y3YJxPQ9nZCuqK/9IcRVMPdRl2ImuJqXNHZaeCFAip7erEtcg/zzoseUIwz7aID2BYCG4hbG/ c+8M2+Cm1Wz19wRRE57Of0t6AMltyLi3yHf5YoowgqRBEh2GSNBinQh2c6dakHUJD3HgERz880+zz 2JFWAT6Q==; Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1gaA-0000000Gonu-2tDp for linux-arm-kernel@lists.infradead.org; Tue, 30 Apr 2024 06:03:18 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-56e69888a36so5497142a12.3 for ; Mon, 29 Apr 2024 23:03:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714456991; x=1715061791; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3f+ijQyeya70KJofDglQNOZzfNHaShj1cgKGVLxvefs=; b=st7zzu1A1x1xhaxO1nlmYiJJffLxU6r6Y+lWSBzcfLUdSgeNWZwmBORC3zSJbWrmqt PYWqwc790V/sH/heu54jiGKka83l8wDONZgZ1fi0QPyfbi+mJjKwLohmgM3XOo16kxBC qygJnqxMgZxesGEEaYRQnXAwUduTBJ9BdVMpRbjvuyJ5gp8/ohSmbFzcYXtuPWJ2AXFl bfHvA3u35hlZVO6O56Fs2Hl+iz/rPZkHWi/i5mmJwInLalHgyF+Dftf1XP1XCOlMez3o R9a79GPhvy30FP3V+5atnvbe3FxuHCq72iXN69gDuN+YnZJQDVLVzb0CrQfN465OY/IR zZTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714456991; x=1715061791; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3f+ijQyeya70KJofDglQNOZzfNHaShj1cgKGVLxvefs=; b=WHNMZTtHYsAF00aM4M9Q3YVYm0HVGNQW6P9JBanc+UlRskQ/frjYtuyLCSr3sFuU2v s35ARv4IJIOEjIgyVROXHEv2E53ojuLiBylJCmIwjtU4WRlCWPZQA2IwmF3A10h6n6+r RVpFPEZ5jK+uNTJJyGGykKPHC9cfD+bMPI8L9XY3obPrL6GLW3gghCj5PlNiaKkLJKpf SNEtdGtYGepQmzwWE7CIrH0CBbOl7Uzvd7tazX2qCxG8yaG5W6B4JhQUCJrT0FnO+xBQ mBSWrPsk3OjC4EDAnsICWys2hg4Cl41iq2TmOU8CaPJ3NtyiUaP0UkYflewE+alkj7YB RikQ== X-Forwarded-Encrypted: i=1; AJvYcCV+B9dK2HG0GXgW8DSXtdfk6LjnfaRghpXz2EL7LpHvAgap8NbxrEs2druoVilLI5RM7SzHN9Rm1r3rBWxS2KQFZgXRHxx4ktx8nWbl+E9dBNWNUN4= X-Gm-Message-State: AOJu0YwSh65VHGQQpf/GDLBQxBrOQtEuDfolAqFHBJ4krr83Ys1bJzPS lf53MpKbLRClubqIZAzJgoCNchAelbbHSJ+nQhlTbaMLHXoYSnFiSIgq1PHZtQI= X-Google-Smtp-Source: AGHT+IHsxQu1c/Z0Mn3dDIrV8VWK+y6QBHxho/ga7aS2nKLQZkv6W1lrMPoJJP6b4oCO5JKOaJkTsw== X-Received: by 2002:a50:d497:0:b0:572:9c4c:2503 with SMTP id s23-20020a50d497000000b005729c4c2503mr227076edi.38.1714456988740; Mon, 29 Apr 2024 23:03:08 -0700 (PDT) Received: from krzk-bin.. ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id ca4-20020aa7cd64000000b0057279d452cbsm2744580edb.83.2024.04.29.23.03.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 23:03:08 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Sylwester Nawrocki , Alim Akhtar , Linus Walleij , =?utf-8?q?Andr=C3=A9_Draszik?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , kernel test robot Subject: [PATCH] pinctrl: samsung: drop redundant drvdata assignment Date: Tue, 30 Apr 2024 08:03:04 +0200 Message-ID: <20240430060304.12332-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240430_070315_236504_EECBFE2E X-CRM114-Status: GOOD ( 10.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fix W=1 warning: drivers/pinctrl/samsung/pinctrl-samsung.c: In function ‘samsung_gpio_set_direction’: drivers/pinctrl/samsung/pinctrl-samsung.c:633:42: warning: variable ‘drvdata’ set but not used [-Wunused-but-set-variable] Fixes: f9c744747973 ("pinctrl: samsung: support a bus clock") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202404300825.6lxLwvUY-lkp@intel.com/ Signed-off-by: Krzysztof Kozlowski Reviewed-by: André Draszik --- drivers/pinctrl/samsung/pinctrl-samsung.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pinctrl/samsung/pinctrl-samsung.c b/drivers/pinctrl/samsung/pinctrl-samsung.c index f4607b8493ff..623df65a5d6f 100644 --- a/drivers/pinctrl/samsung/pinctrl-samsung.c +++ b/drivers/pinctrl/samsung/pinctrl-samsung.c @@ -630,11 +630,9 @@ static int samsung_gpio_set_direction(struct gpio_chip *gc, struct samsung_pin_bank *bank; void __iomem *reg; u32 data, mask, shift; - struct samsung_pinctrl_drv_data *drvdata; bank = gpiochip_get_data(gc); type = bank->type; - drvdata = bank->drvdata; reg = bank->pctl_base + bank->pctl_offset + type->reg_offset[PINCFG_TYPE_FUNC];