Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1330983rwb; Sat, 5 Aug 2023 12:18:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEIQ1s36gs79H1fxG56yIbGA5t+6RVXZIZ2r7zXxPkrOfnHe5pYtpmu/rWg1+ipKlv4XZJr X-Received: by 2002:a17:906:53d4:b0:99c:9e98:70bc with SMTP id p20-20020a17090653d400b0099c9e9870bcmr4088891ejo.29.1691263103821; Sat, 05 Aug 2023 12:18:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691263103; cv=none; d=google.com; s=arc-20160816; b=HNZRqhuw3ugwO0qA2BhkMn2LRcOBvg69Q7/VlnjtIJI1zy+RTYxGfSeigPodVWrD0G dGm2Ws7fE4OJ/YbgcXenQP3286/BKxY63px3tnYH65yOETcOW+ubBpifCw5FF3M4rZRb dA8RlxCkKV9an9qqC3O7ISk27kKX1KcjJR8+838C9CcXaOMjaq88GciGyNSyQ/h38jCE a7QpPnlQsvg+Nwi+m1f8H7r90HaQ6jqq+zVBh8eX9bpCTmajBFy4m0uxyGmtV4i7bRRw G9BSM58zQFu8IVQ0Hw4NeWCkNOHPUOidVStmhtN32IvBTLgXIGYGATcHvjtl8tHc/9Jy cjhg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=bgjWPoGSU3pEp9ejr2i1ywFAz2kN0/OXsZHBfedobiw=; fh=R3H5CuccPn6RFVjTvnXveW1R8vywGETJatAH1hluDNA=; b=InhTFVFAXTBDWRZWvNP9hgIsvg07M70r1uPc69KvpvZeK7lNtblL8iugs/neb+qlOx QOlZf1mBmpN58SUzFgSCHXsI99EI9eilp269Vn/oIMzJ5kF++RW5KD5qOGotcoFbdLyP KSk5mbWH2EIut7E3CmZFiAyL7KHqlLV+LgCcpQuuCKJ+pnXx4J9BiSHKtsToSyLAD+lR XsuPQzW28V34g6t4KwCb9hdQqymOIr10jS6Hm/F+jEDLioy9IlhwFCp34i96PcxdSFKK ERQKy1alBxiRSL5EvdQF0FiNDmomRl22cIq48fXAv5HmjjsZhH0CnstO9drskuvlUNO9 vrNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hvB++aps; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lf9-20020a170906ae4900b00991fcf4687dsi3106499ejb.186.2023.08.05.12.17.58; Sat, 05 Aug 2023 12:18:23 -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=@kernel.org header.s=k20201202 header.b=hvB++aps; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229570AbjHESE5 (ORCPT + 99 others); Sat, 5 Aug 2023 14:04:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjHESE4 (ORCPT ); Sat, 5 Aug 2023 14:04:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00610187; Sat, 5 Aug 2023 11:04:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 84F0C60D41; Sat, 5 Aug 2023 18:04:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7354BC433C7; Sat, 5 Aug 2023 18:04:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691258694; bh=96EhEx/ZwAoLEZrGKhah56CZPPgGexCaaNmFBjOhFbo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=hvB++aps/bNGYC6pSwdXTNR5Fj41/6hoGjDLgBIcH9qUmPPT3i1+7LyB0Yk5rrExR j4sVxJewj4lZu2OUjCHkzzBP2AfjvPSTxJRxqAWhK0lSKFCP39BMwkUObyW3BET+OB nPDmNvVPduv6yM/imIEF54LXw9VuloACj101O2b8OfUkDEZ64ZZPad1IHiLyO/a4gd bEUMjjoW/XXoXcaYNmaW3juFPHhMuQXWPGRLFXwGnYvdzuxbweJvIAFywwnOLERHYu jxfyNpXBp1EqIcIB0lMP0GfOWKUHn0FLOlnOuosTWgkQt+gs/M5OOMWGYV1vEBaBTP tAqmdtEJEEpGw== Date: Sat, 5 Aug 2023 19:04:45 +0100 From: Jonathan Cameron To: Alexandru Ardelean Cc: Andrei Coardos , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-iio@vger.kernel.org, alexandre.torgue@foss.st.com, mcoquelin.stm32@gmail.com, lars@metafoo.de Subject: Re: [PATCH] iio: trigger: stm32-lptimer-trigger: remove unneeded platform_set_drvdata() Message-ID: <20230805190445.08036501@jic23-huawei> In-Reply-To: References: <20230802120915.25631-1-aboutphysycs@gmail.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 On Wed, 2 Aug 2023 15:37:02 +0300 Alexandru Ardelean wrote: > On Wed, Aug 2, 2023 at 3:09=E2=80=AFPM 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. A= lso, > > the private data is defined in this driver, so there is no risk of it b= eing > > accessed outside of this driver file. > > > > Reviewed-by: Alexandru Ardelean > > Signed-off-by: Andrei Coardos > > --- > > drivers/iio/trigger/stm32-lptimer-trigger.c | 2 -- > > 1 file changed, 2 deletions(-) > > > > diff --git a/drivers/iio/trigger/stm32-lptimer-trigger.c b/drivers/iio/= trigger/stm32-lptimer-trigger.c > > index 2e447a3f047d..df2416e33375 100644 > > --- a/drivers/iio/trigger/stm32-lptimer-trigger.c > > +++ b/drivers/iio/trigger/stm32-lptimer-trigger.c > > @@ -92,8 +92,6 @@ static int stm32_lptim_trigger_probe(struct platform_= device *pdev) > > if (ret) > > return ret; =20 >=20 > this can become now: >=20 > return stm32_lptim_setup_trig(priv); I made that change whilst applying. Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to take a look at it and see if they can find anything we missed. Thanks, Jonathan >=20 >=20 > > > > - platform_set_drvdata(pdev, priv); > > - > > return 0; > > } > > > > -- > > 2.34.1 > > =20