Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5358050rwb; Tue, 1 Aug 2023 00:50:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlH9GjBVA/eZOW9/EOEdk5ZWiFdzK2u/pDBcuZCMplA4Vtvo5lDg3d6zFFe77+d8CR+Na0Xs X-Received: by 2002:a17:906:3046:b0:97c:64bd:50a5 with SMTP id d6-20020a170906304600b0097c64bd50a5mr1764451ejd.53.1690876225218; Tue, 01 Aug 2023 00:50:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690876225; cv=none; d=google.com; s=arc-20160816; b=mCHbmV/yBhH0+M///fSiwbvRdDtyusK4vIt7zv3GUPaeEOvux8/GbOVgdKF/EpLh0l qhIR3jo4eU6+UNfNAUR3/gTwkINQdVHk9h8VmuzrJzRieKGaYji+dOVfEyXRsK8HCqQd Ajz5cDmTywwYhrAESa2KRx2MIWPL/crr2+twOsZV4K46I+aOq1rA5+Icb9LQ4Nb0ZmE2 Wh1Wgj6jjnUjgLftFG1UXkBAbjA7jQIml72Qs7Gp3chVct9C9LUsV3EhvoHAVmi2YyMK ZRqeNIEkgqhivySuHOFmCsaquHvlVVYbJFrqlksYuZYKvjovnXJTvxZGzSW7tCvsA1q8 b3YA== 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=0WfKxn5oEge6vhPnDEY2egIOARkuMSrcIgRzGtV9I48=; fh=YxWGwR4Q4sagV51lsyDHEjshjchQ1wP3c2WjzymV3IE=; b=PYv1aLKoQL2NyeBc55/kKyQ+qyCB1jxJRnjpUpWjECCSGn4u1SDdIgUjNqFPg7zRFN Q8K4UBWf9g87I5Cgh+cmWQCi7dtizy9bh8VwmsFarcgGL5TrXYWisWsNw/LekvqDDRN+ ek8rueW/myXekbiLJ7Z39x9c4oWDQ9TeizXy0+D4V90frtIX6YvnFPVAyJB028ms2hiT vpmU38iv0a6HgqL/o/44CFIePtoWmkMpwGUSicbYFi/O6f7iDFg9d7xZ9I/S1amFYgO9 ALIeZ6/CjGuAOKgKGknlN9JYrQlL/8h4loVQu29dEIRaqOX3oiQ1IjDpitN3pqrxQ0AV mFUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=QFGYr4jQ; 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 dk8-20020a170906f0c800b0099364d9f0e7si7882320ejb.543.2023.08.01.00.50.01; Tue, 01 Aug 2023 00:50:25 -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=QFGYr4jQ; 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 S231391AbjHAH2y (ORCPT + 99 others); Tue, 1 Aug 2023 03:28:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230447AbjHAH2x (ORCPT ); Tue, 1 Aug 2023 03:28:53 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4BC7170A; Tue, 1 Aug 2023 00:28:52 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-522b77956d2so3769944a12.3; Tue, 01 Aug 2023 00:28:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690874931; x=1691479731; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0WfKxn5oEge6vhPnDEY2egIOARkuMSrcIgRzGtV9I48=; b=QFGYr4jQrL3lzilRxrCW3QGb9PU/BPM9f4tLeaJ6JU/p3i2QRvbGtYo/VBLHKt80Jm 0Eo+M23eUHoQrb0rTyUk/t1yKDk5jpL9Ku4pUYLJPveXJg0FmVckd8CyruqA4MPn4MgC RKIb0tcL1cMauIND+ZquG4QOT2AY4t34WHqBvZ5Me+0sHFbb78r8//R13bgy8uj/Z7yL N8H5Bs9rF85Li/bxNms2ntt/v1TD36+jcuoGfDiR198Jm2tZdaMRbl4xL0Wt1c1qVVah pIC+eYZrJDUtgBQQNQuAfg0WXuPh47sJCmvEQrS18s4pfrrM8ubc90t8bKvvwxPBgWFK nZ+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690874931; x=1691479731; 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=0WfKxn5oEge6vhPnDEY2egIOARkuMSrcIgRzGtV9I48=; b=fX7lR+6/fPi9Srp+EekTnbfbOqUKW1xeHmMPpk1MKgbcxpaa/A+YJOZcf7exiiCcX3 /LbimFVle9mBNPdVyoaKTyD5gTfbwmDtpaSIUx7lvv69xXvu1eon/wS5inU3zUFEXKuI AUVy+QnNZZP7Zfgy3v+WBk8YP7YwdvRjDc6CyM8YOhXwDBpLpBtISPuKnF+tefWQlATi WsONU69edObXNieBHoK4ZflJCbL0lRBbhJhHXrc9dmtbsiRrRUxDLJzkSGaor2MrK9dQ tqHImTfa06tikqEn6PzdKd/iuCewtZ7RrjwiEgmgGnHUT2l7M6soK5YUCBVQeIcFzKLB UKrw== X-Gm-Message-State: ABy/qLYgiBttpXxBeyr/nGpaMzuS5Lm53dgM1yKZAuk3xvU0BKdBl8hA A5bTJUIEK5vNMc/teVFP690LmPCXUYt4ew== X-Received: by 2002:a05:6402:2054:b0:522:af5c:ad20 with SMTP id bc20-20020a056402205400b00522af5cad20mr1945093edb.1.1690874930803; Tue, 01 Aug 2023 00:28:50 -0700 (PDT) Received: from localhost.localdomain ([78.97.234.98]) by smtp.gmail.com with ESMTPSA id b26-20020aa7d49a000000b0051dfa2e30b2sm6459244edr.9.2023.08.01.00.28.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Aug 2023 00:28:50 -0700 (PDT) From: Andrei Coardos To: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Cc: brgl@bgdev.pl, linus.walleij@linaro.org, andy@kernel.org, Andrei Coardos , Alexandru Ardelean Subject: [PATCH] gpio: sch: remove unneeded call to platform_set_drvdata() Date: Tue, 1 Aug 2023 10:28:00 +0300 Message-Id: <20230801072800.4130-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_BLOCKED,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-sch.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpio/gpio-sch.c b/drivers/gpio/gpio-sch.c index 8a83f7bf4382..e48392074e4b 100644 --- a/drivers/gpio/gpio-sch.c +++ b/drivers/gpio/gpio-sch.c @@ -380,8 +380,6 @@ static int sch_gpio_probe(struct platform_device *pdev) return -ENODEV; } - platform_set_drvdata(pdev, sch); - girq = &sch->chip.irq; gpio_irq_chip_set_chip(girq, &sch_irqchip); girq->num_parents = 0; -- 2.34.1