Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp38127469rwd; Wed, 12 Jul 2023 03:33:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlFX2OC+iZV2y4TmclUxqwOaeK959/OcKTe+8TrVQ7TeAfAlE8QqQ96RClVOrdHS80Xr91+6 X-Received: by 2002:a17:902:c103:b0:1ac:5717:fd5 with SMTP id 3-20020a170902c10300b001ac57170fd5mr17629777pli.60.1689158000536; Wed, 12 Jul 2023 03:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689158000; cv=none; d=google.com; s=arc-20160816; b=PGJJfUgdf3Q6aMFSMIuj6gYhI/1Xcf8fRaC7CdWfHmjwTya4WYQ9o80mE5IUncEcDp puZUKekFXKsZZQvX/N+eK9hgJum6EqhDzoYiWxT7MyHZ1jvRSbLAv8APWbC4yG8SYK7J 6bQKtFHa5mSnwrKEv21ULPXO8pD/nAPTm0MSz0gPjlqSkD6TJwgst1Lpmo/V5a7wOG0p PiH7q1hcawOhk2U7WQbJGc4XEWyO8Hg6CYqmG1u3I5ktjnHl8lSmFlyLStY90n7a2E9k Nks4DMA35LOo2Ho6BHXZOzvx0cmbdrZDnu57qYiflzDxAUc7dXAda3A7aIlFtNBL17sf lkwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=erayjZXITfM4MfnsLSpDFgf/EiEK5R/o3vBj9UP4zyM=; fh=QYznb4HHQe2OSp45NA4xnaDZ706XoIDbcQ+L7vkIyVY=; b=PvPKt1YLI9+9W4NqQIr0jIQ5luhYzmgP7KEVahW/vIhyCxarc6GZAMaPpR1uiyg2/Y GYLxFMqAJbN2OjJdDpUjIrIKpNSba+FOzwur9omkTyDzqOztX/4CgZwu0QnnailEMsqE qCKGn0USatN7nUEEwtF/MqNTz2//5s2qacKUe7+8wDpE2C5m5W34QGxc+QN2QZyVCJCv apAr8fVD6cjaCHa8qc5zcwHW+Y9y1I+bhbZ+yXmHWqUxU/eHsLZVTJTKzG4m819/0T9V uDAEYkuWpvCLrjKWi267Q6kK0WQ5TU2jBEFOPbVoJzhkgaGnPEKkYDRkuph3gRp8aR5C 1Caw== ARC-Authentication-Results: i=1; mx.google.com; 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 b12-20020a170902650c00b001b9f55d28a2si2091748plk.205.2023.07.12.03.33.08; Wed, 12 Jul 2023 03:33:20 -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; 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 S232516AbjGLKPC (ORCPT + 99 others); Wed, 12 Jul 2023 06:15:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230504AbjGLKPA (ORCPT ); Wed, 12 Jul 2023 06:15:00 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 332811991 for ; Wed, 12 Jul 2023 03:15:00 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qJWrv-0008Pi-Ch; Wed, 12 Jul 2023 12:14:47 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1qJWrt-00DrcU-UX; Wed, 12 Jul 2023 12:14:45 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1qJWrt-004Haj-8R; Wed, 12 Jul 2023 12:14:45 +0200 Date: Wed, 12 Jul 2023 12:14:45 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Yangtao Li Cc: "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Matthias Brugger , AngeloGioacchino Del Regno , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH 06/27] thermal/drivers/mediatek/lvts_thermal: Convert to platform remove callback returning void Message-ID: <20230712101445.bci4qkcf33wkr66d@pengutronix.de> References: <20230712081258.29254-1-frank.li@vivo.com> <20230712081258.29254-6-frank.li@vivo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bzvs6qosiovvxhrt" Content-Disposition: inline In-Reply-To: <20230712081258.29254-6-frank.li@vivo.com> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 --bzvs6qosiovvxhrt Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 12, 2023 at 04:12:37PM +0800, Yangtao Li wrote: > The .remove() callback for a platform driver returns an int which makes > many driver authors wrongly assume it's possible to do error handling by > returning an error code. However the value returned is (mostly) ignored > and this typically results in resource leaks. To improve here there is a > quest to make the remove callback return void. In the first step of this > quest all drivers are converted to .remove_new() which already returns > void. >=20 > Trivially convert this driver from always returning zero in the remove > callback to the void returning variant. >=20 > Cc: Uwe Kleine-K=F6nig > Signed-off-by: Yangtao Li Reviewed-by: Uwe Kleine-K=F6nig While I like like you picking up the quest of converting drivers, I'd like to have some coordination in place to not let us do duplicate work. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --bzvs6qosiovvxhrt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmSufRQACgkQj4D7WH0S /k5CGwf+J9LZL39gNGaKLsIHlIqVcOPuaffvlQEbuDPEk+NXzDuFe8zPPMp2Q47i u53yJb74c9cR03QdbMMAmLI5Z348gpIamQtynQ7gHIwOrHNeY5cLRrdyXhrRVg5z W7w9/KR+QlKenZogcWWIjoQHS2CHbQ8O4THEYn0SH6YIOfhT19vZtdz5DHSiH0xr 8FiJxXBzBBlpY+oGkLw58t0tkJCKlBj5AtR8LWWt320FiRPBgbGiNzfBvOaSXd5y DWD+19p5HzYJkaKgtXmGKTOQ4DGS5zCHPxAK43BgNVguwma9ZM7baQjKnfv6AY3T dZzKa7Yyfq6vuvAxHq4OgAIOyDnYdw== =8PTH -----END PGP SIGNATURE----- --bzvs6qosiovvxhrt--