Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1576158rwb; Fri, 28 Jul 2023 11:24:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlEuvsworqBIap0ZX+iZWvr6/AmZ9xlgt+jdadAbGj9xCLJux93lxdTNEJeU4WcaGVkiOKzn X-Received: by 2002:a05:6a21:a105:b0:12c:518:b8de with SMTP id aq5-20020a056a21a10500b0012c0518b8demr2312544pzc.17.1690568680226; Fri, 28 Jul 2023 11:24:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690568680; cv=none; d=google.com; s=arc-20160816; b=GTOyRI6Nkjix8MpRcY9wqYmi4fdw6Ctd1WLUtW3ZBp2CvvGubBNcUIydVZYG50KmT0 FI8wCmJVKPB1aT+fAJ3gWnKphzgs0Wf4e82MxEl1cwvz18NWR3BSCv5ch12AJPNOxNxR EPoOuYg88jbmUz0rtf0QSpkFt/9G8SlWFRRg2aNL5yyO6hOQi4B/Ek849lcQdz7pktWF 4jVWZBQvI1v1YXyO6Gh+D8n4XHoorgyN2F/Gx61hubBHKpCsG7rtlF6p6urUQHlPedUL 0Yrbahu/5Hgbs1PfZKHJwAK3Bs3mcL5Kiuis0ph+GHC/UKfaChZ/XHctAPHcOsiuhsH/ gSig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=qatUUeArBbRmA2Gc7rvoocZRI8Ab2ktUs8bqBiPUFH8=; fh=kmvJwonK3aEabN6rbU/hSHuxTtO46DCuML4/vKxUdjk=; b=UI8qbP16arypfc98yJaCIhJZ3LtuKDPYZsVW8zmcYhWuSxiTNlJx2sWn1UjLwjowAZ MdH7fmva9sexHV1Nn9MRpj9OduF8kyCLjsFFk8hwzIVmJfFA/pwYpp8IaDHzek7O+LX2 SzDWt5LZqTEsGh4JaFnt/HjXDVe+NQK/8/Lwjd3hwyK6hah8d11qpYQ0IWC1vaSV2jPK yDXx7FaZZnmeETQUdhSCBQ7kHfOH/+bXTUwGY4gsxHGcCoGqx5Q7809/vronkikLthpm Min1fCa0C/q79LDIjVdvqrUa+3h7xSeKqnRLsLFGUqUGZV284SbdXmX+laB+04+CPbF/ TwDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=lXw74ReC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cu14-20020a056a00448e00b00675f3892a4dsi3448922pfb.304.2023.07.28.11.24.27; Fri, 28 Jul 2023 11:24:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=lXw74ReC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234646AbjG1R7e (ORCPT + 99 others); Fri, 28 Jul 2023 13:59:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234290AbjG1R7a (ORCPT ); Fri, 28 Jul 2023 13:59:30 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDE1A3C2A; Fri, 28 Jul 2023 10:59:27 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-99bed101b70so140981566b.3; Fri, 28 Jul 2023 10:59:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690567166; x=1691171966; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=qatUUeArBbRmA2Gc7rvoocZRI8Ab2ktUs8bqBiPUFH8=; b=lXw74ReCrCjAbCD/MqF9gCFTcl+Z76kOA5vMJqKYhjYpGG0DDNJVsFEzmUw0naj2p7 Fi9+A8T1CAAcALBp/j4MyDjCuNqqco8ZA0ZY4P2VarjsVdSMs9iT2O+buXKukoCKwHSD CTxs8NLvh9BpqG1Fi24jISsoWnH6sZi/FhOkzaJjvNsDI/KfTV6JhhxSpatnZXHc1/Xw bbZQ+8wjpl11MP+wEtcRsxZrLHvGy2eCmKIdFIIfeVhWjx2sElgp1IUeBQlrP76sywE6 PhJRKtt53egU3y/G1WCMETBGbwSMPgCcL0wbrA1PP6F9/ofUDeQs+pbxrK/BTXItbp4H J5JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690567166; x=1691171966; 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=qatUUeArBbRmA2Gc7rvoocZRI8Ab2ktUs8bqBiPUFH8=; b=KFGWeEL1koErIe3V3oQWmc+r4I0BrU3XIb2d3ZMtItKa6rKhjr0jq0jj1D+TdsmZCn VFigjNMyjS4/jw5Z51y409NT58VB15qJOESG2VuDyvFyhbd/JBn9ArUpWlIZ8IqDWWts xB1pzI4FhmZovz1QLNhTqoVFCgOR0yIkLimMocVJVQaUUkbCTMCfc47MGGsnaroogjV8 434RdPTc3YFigwW8+7fwDX9dhfaKgWIzkYL/sYmwHecK7U25sZ/IhWilrv/VBy/tu8qF 6003mU8NGtFD6z/CmsQo3FMKdtWQynnPs+RZtO1toNCy8tQL2uVkC+Qo4/AYngPV7EFD HwBg== X-Gm-Message-State: ABy/qLZNqhUKkQIJgvwBzEKlUfn6wYmc9b+jI2pnv0lWhF9i+AYwR1sQ ee7B2q26TiK3ZPhoZK9WsWjl2T7nWTM0ng== X-Received: by 2002:a17:906:8a5c:b0:991:37d2:c9f0 with SMTP id gx28-20020a1709068a5c00b0099137d2c9f0mr66834ejc.68.1690567165863; Fri, 28 Jul 2023 10:59:25 -0700 (PDT) Received: from localhost.localdomain ([78.97.234.98]) by smtp.gmail.com with ESMTPSA id fy10-20020a170906b7ca00b0099bd646e727sm2318415ejb.80.2023.07.28.10.59.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jul 2023 10:59:25 -0700 (PDT) From: Andrei Coardos To: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Cc: andy@kernel.org, brgl@bgdev.pl, linus.walleij@linaro.org, Andrei Coardos , Alexandru Ardelean Subject: [PATCH] gpio: palmas: remove unnecessary call to platform_set_drvdata() Date: Fri, 28 Jul 2023 20:59:14 +0300 Message-Id: <20230728175914.18088-1-aboutphysycs@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This function call was found to be unnecessary as there is no equivalent platform_get_drvdata() call to access the private data of the driver. Also, the private data is defined in this driver, so there is no risk of it being accessed outside of this driver file. Reviewed-by: Alexandru Ardelean Signed-off-by: Andrei Coardos --- drivers/gpio/gpio-palmas.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpio/gpio-palmas.c b/drivers/gpio/gpio-palmas.c index bac10c2faf56..dd8a287ff6d0 100644 --- a/drivers/gpio/gpio-palmas.c +++ b/drivers/gpio/gpio-palmas.c @@ -184,7 +184,6 @@ static int palmas_gpio_probe(struct platform_device *pdev) return ret; } - platform_set_drvdata(pdev, palmas_gpio); return ret; } -- 2.34.1