Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1803194rdb; Mon, 9 Oct 2023 03:37:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGi9MfO9E82QJs9fhyQ4z6BFHoUrxw5CZ2NXeT0tMHaXehuzcLQvIkgRe06ZxMZ/9a83GCK X-Received: by 2002:a05:6808:1911:b0:3af:d9ea:74b6 with SMTP id bf17-20020a056808191100b003afd9ea74b6mr8652112oib.43.1696847870498; Mon, 09 Oct 2023 03:37:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696847870; cv=none; d=google.com; s=arc-20160816; b=uFKcYCGjbEjkQ5iteo+ty59nnjuesWmzY9bcsgc7wkRDZ0pePdYW+ESda03mtVLeWN agitBDYz7gd4YKRaGdZZ2phXt31dzwgb846pwJ0lPkjPnOPAY3rrgfOWPyhsEj9mWVO7 BwS7mAlN1yqfbvc4sc8CoN/XWDtKEbXDf/vWTgAxRz2xA6iH4Ch7mfve1ObmFf4NPqCC BwjQPfEcoOpjjRg6AkQrIdKFuJ0XRQp+PNtSW4g4mf45LsOyS8N8vr9kSjOOTsywJICZ enUJiOM0I0Ly2uHxeXpEBg6tJCEQAJthtxyh3Rv5caM9MSPZHxuL5KNT+MA6hDlLgIxu K/4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=OyqyfVFU0gVjuaAYiEak+piLM77d61dNep6YSXRwMUA=; fh=ooLvZd6XxTM7z/ZTslUzzCaoCDEjYeDe24tRrM90LFE=; b=QGp98bVydrXslVo/F5KwwgPGxCfwrH1q2VGckAjSloEya8VB8BuojFIFKtcgP+6tHY 3JTCeuUrULNcnFMjMcif5ED+sYrXBmfoWIyFsVUCDKDl7ocU1I5oknSh3kPk/dZTPhnc vBjwJPQ6AZb4l/w0pcATBgLQe8o2AMDWl9ikSSBzOmwDKLNyeHBApMPKSPDB4n6cLH0Z 6ZW/VfF/Rd/QNtDNt/9aMIYvSVx1ZVOGERsqHwKyTQha07f9aw46z0iey0xNM6l9Qgcl bYjdrUled0WD02pgX5sPwXJzL4NEDP4o2qTtQfsTTb+/RNfyCNZcCgAslK6izPQaLP6K Lklw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=YI4vtvCV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id f16-20020a63e310000000b0058986ac734asi7466094pgh.561.2023.10.09.03.37.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 03:37:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=YI4vtvCV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id A4DC4805D2BB; Mon, 9 Oct 2023 03:37:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345926AbjJIKhg (ORCPT + 99 others); Mon, 9 Oct 2023 06:37:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345888AbjJIKhf (ORCPT ); Mon, 9 Oct 2023 06:37:35 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E133C11D; Mon, 9 Oct 2023 03:37:15 -0700 (PDT) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 3998o4jd004408; Mon, 9 Oct 2023 05:37:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s= PODMain02222019; bh=OyqyfVFU0gVjuaAYiEak+piLM77d61dNep6YSXRwMUA=; b= YI4vtvCVYNZYSjQkwMD4wQU+yXBSzVigaj0ZBJk++6Tddcg4oEJPmJsH20WknpPX Ubz+e66KjlP8oWDwc5cMlzoVTrFP5eUCx9iAyI3qxiMulbbZRoncsOIgLF6HeRjo GjUa35evCAo+iAlzp+dPIcUedH2y8UhTi3ti7eZ0D0pMVNPUCVDPi32qjIwv6bPk FPGcVBnqUurisfvPvIMP30ONPYlBGy2YJ6Qq9FOn7dktFbJsQbw152Cszziyts1o nz/L+6I9OHe2acmhaYnsEwy1iZnSOlfkEtbrKinwyUNIrXJQUHRVxcS17xQC8cRg bg62lDoaFpCXJRp+FwynhA== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3tkhhah53b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 09 Oct 2023 05:37:03 -0500 (CDT) Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.37; Mon, 9 Oct 2023 11:37:02 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.37 via Frontend Transport; Mon, 9 Oct 2023 11:37:02 +0100 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 1F98911AC; Mon, 9 Oct 2023 10:37:02 +0000 (UTC) Date: Mon, 9 Oct 2023 10:37:02 +0000 From: Charles Keepax To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= CC: Linus Walleij , Richard Fitzgerald , , , , Subject: Re: [PATCH 04/20] pinctrl: cirrus: madera-core: Convert to platform remove callback returning void Message-ID: <20231009103702.GT103419@ediswmail.ad.cirrus.com> References: <20231009083856.222030-1-u.kleine-koenig@pengutronix.de> <20231009083856.222030-5-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231009083856.222030-5-u.kleine-koenig@pengutronix.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-ORIG-GUID: 0ilXo8LgIoQU3KAveaIyUEAf2RT9i5H- X-Proofpoint-GUID: 0ilXo8LgIoQU3KAveaIyUEAf2RT9i5H- X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=2.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 09 Oct 2023 03:37:47 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 09, 2023 at 10:38:40AM +0200, Uwe Kleine-K?nig 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 ignored (apart > from emitting a warning) 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. Eventually after all drivers > are converted, .remove_new() will be renamed to .remove(). > > Trivially convert this driver from always returning zero in the remove > callback to the void returning variant. > > Signed-off-by: Uwe Kleine-K?nig > --- Acked-by: Charles Keepax Thanks, Charles