Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp549191rwo; Tue, 1 Aug 2023 23:35:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlH9taKQYTAsM7hH5EJVs8N68Balg407bz4o/86jDC3lJID/ZoPm7zXyhcM9lzepYxrpOXOk X-Received: by 2002:a17:902:d4c9:b0:1ac:8be5:8787 with SMTP id o9-20020a170902d4c900b001ac8be58787mr13786249plg.21.1690958155139; Tue, 01 Aug 2023 23:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690958155; cv=none; d=google.com; s=arc-20160816; b=tL8k4hgZXOscxVip0CfW1YglzGjBjV7j3pIjmjWTckFIQurPlBmmtGu3bUfZ75ZDe3 Yi2ttCojhE00jqryN7u2WgdlG3l4N33n/MRZ7WPy6lL+ff5axm+or0s+n/TTE4mXQ2Rs WGRH7q9IEQJ9Wewwr6oA6fnUG5qFcksssIIrWku23vQIPnGXrPm1BojF3/cnYb3VOK21 Ug26uXsh40vrr3dM2AHJRzuPDDNpty6mpqBwd1SCRpj/ZmUjHn6As4BMvlCadWNhfWmD bBhvXeo2U+tJmn13eR66nBB4A4mNmefyv8g/s8DIqHaNwTQE4hasQQ4bZRtZWXhqUW8C JQ3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=4fq8IrQBjbBrZnSIFTJPM7Fat7+qErOQ84qV/bHh6os=; fh=vA7hn2c8TDjaUNwjzseY4weeaBbOm8RKBjGTjUc7XSU=; b=aTQG0MjYZ3eBuzwRJIFhLDkLv0c7UFCHStAyd/m3olOquG4U8DbbywRzo09qafKx6J ejhx3n0f7hXorjB3rsXWfMN5YvpDqBTB05n5DJWNdjjYT4iB1jmbkm6Xepa3ES1pBjp2 z2rNN8Wq4bnTMf9pTbFDq0UiLLTFoRcE9c+w3a7mcF7bLfHXyUMk4puFkfZPcBChJXsd SJsTriBp7MIsiDx2Mg9HTaE9QifNTnBvP9O3/C9iw3UQsW8NbPCfjZVLAZpJLfK9XCQk nMUqg5yqwTzce/LTVEcmCNhzz05r3+UnJzDKotMibHahVySLfWSKcxQdAFeLAm3rSEtX vdqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=ciew+N7I; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c12-20020a170903234c00b001b8a7ec395asi10683990plh.604.2023.08.01.23.35.42; Tue, 01 Aug 2023 23:35:55 -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=@tuxon.dev header.s=google header.b=ciew+N7I; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229589AbjHBEmY (ORCPT + 99 others); Wed, 2 Aug 2023 00:42:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229946AbjHBEmW (ORCPT ); Wed, 2 Aug 2023 00:42:22 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 747531715 for ; Tue, 1 Aug 2023 21:42:21 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-31792ac0fefso3350370f8f.2 for ; Tue, 01 Aug 2023 21:42:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1690951340; x=1691556140; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=4fq8IrQBjbBrZnSIFTJPM7Fat7+qErOQ84qV/bHh6os=; b=ciew+N7IZc8/zYJoOoA9MQRpRD4eSB0/uUEcXt5BK2GIRdiG+W82nav16fwjX95wtX 1TE34RCUFu7duc8u6FfoWNW4XLWJZhCg/4Wb4DVIdaMrvrhHjo5EwjfuPEVp1aaF/nMQ qJgXkiUMMQN9Kz7qxXMMLlvq6FlSAbPtM4HdSfRq/woLpWBPmqglQRMpP6dL8ox+MEdQ 9qPSCkhyWmiR57/fcohqz1Ey/vTZvU22gD/wuCY8uKRLuqFjh680Ca3P2GmXNxNuvgGx U5i48AKgB1kx90jnsteaRDLrSWsR5q1plgi3Saaa12IYIznokSiGnhoSXk+0X6AxLdho gkeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690951340; x=1691556140; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4fq8IrQBjbBrZnSIFTJPM7Fat7+qErOQ84qV/bHh6os=; b=AtjA0nany8/T89UKdpXoIqTn2g0VUfrvc5qIPDQuUSh4ZaKzrFn5NVpcKHTsQ/7seQ m8dOHQCs2+qq4SShdUZm9v6xwiIXo9V6XUnf7zlwrbkJGxvRVnV+fqwHCh0/VSCM4/Fg kndNH+5NO2XwxV4AdBYWyqcQQJYElfWS7gnqo5JywqhdFDbt3aZCXIzCroA2Q3oc0Gz0 B85loSb+3Dft/hsEwlBTDremIJX+gBGVTENRUXJ5dtQPSealwTr9EMrndz5XPn4IPp3g IckACbNJS11gasCC6yjFvzFNgnWKIPHqcw+BnPtzpYG7nArAx3K4qnSwV9MAh4hb4dWD ijwg== X-Gm-Message-State: ABy/qLb22L1FrcpzGQz2WIkjFIr53k2OTYYCDLyGrdh3SQ3UdjSOI307 R/HWi5uZDRNT6pSKatRRvqHNQA== X-Received: by 2002:a05:6000:11:b0:317:5e8e:c2be with SMTP id h17-20020a056000001100b003175e8ec2bemr3590240wrx.63.1690951339976; Tue, 01 Aug 2023 21:42:19 -0700 (PDT) Received: from [10.0.2.15] ([82.78.167.79]) by smtp.gmail.com with ESMTPSA id g17-20020adfe411000000b0031437299fafsm17940853wrm.34.2023.08.01.21.42.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Aug 2023 21:42:19 -0700 (PDT) Message-ID: Date: Wed, 2 Aug 2023 07:42:17 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] gpio: sama5d2-piobu: remove unneeded call to platform_set_drvdata() Content-Language: en-US To: Andrei Coardos , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: andy@kernel.org, brgl@bgdev.pl, linus.walleij@linaro.org, ludovic.desroches@microchip.com, Alexandru Ardelean References: <20230728182522.18477-1-aboutphysycs@gmail.com> From: claudiu beznea In-Reply-To: <20230728182522.18477-1-aboutphysycs@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable 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 On 28.07.2023 21:25, Andrei Coardos wrote: > 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 Reviewed-by: Claudiu Beznea > --- > drivers/gpio/gpio-sama5d2-piobu.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/gpio/gpio-sama5d2-piobu.c b/drivers/gpio/gpio-sama5d2-piobu.c > index 767c33ae3213..d89da7300ddd 100644 > --- a/drivers/gpio/gpio-sama5d2-piobu.c > +++ b/drivers/gpio/gpio-sama5d2-piobu.c > @@ -189,7 +189,6 @@ static int sama5d2_piobu_probe(struct platform_device *pdev) > if (!piobu) > return -ENOMEM; > > - platform_set_drvdata(pdev, piobu); > piobu->chip.label = pdev->name; > piobu->chip.parent = &pdev->dev; > piobu->chip.owner = THIS_MODULE,