Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp152973rdg; Tue, 10 Oct 2023 06:53:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHkIgo2WDMKxAAYUw+bY40H+DU418JCs8BRcFFxHepCN9+nW/dvjN4+Tx1iwsIoJWAHE/Tw X-Received: by 2002:a05:6a21:3d88:b0:171:a3e8:8c05 with SMTP id bj8-20020a056a213d8800b00171a3e88c05mr1947547pzc.53.1696945989624; Tue, 10 Oct 2023 06:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696945989; cv=none; d=google.com; s=arc-20160816; b=gatp3alOfmf8yi5fVAcXH172YrvGntvcaqgIYmE6jPFfeTl3g50BP1azuVXZ5WaZ6P hyJwSeT9juVSyHksAc+qNx9Dog0F432Aid+Hmq3wntEBgfRjGT+Z4X+Sh0Fwo6jfN03B /Cn0vCvOg0NYpTgSNPT9EAgklOPBP6wEl+FEX2l7f8gGi41GBlUq7il25gcVTxklpWZf xAtUed4RJOIz/h6oPLTXHSyAKGRm13Xblj4d9FDdjOziHH2ysX5IcTJBdw8gNbB89N/t /SiiTcEOZJMRTt6vNWJPGYn1sprZcpTxdqMAsBt8u52LTiRYIy2Dy/bUbMHVtQ0JnOcF Hnmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=NHv90yeM59s0sxqLXofNmRkQi512BP/YIHCc5n2XRV8=; fh=os4odlVwNTCaNjrU+Izq9P6myEc5gcmHnpbYoL0a43g=; b=GL9PZW/fZ1UUEbRn/S/9KHluS3UH/zR4psr5Vt0LvZk2UscqGjiLCoeAF2WCLzxnpE mUvjd8BEn+MsqqTrj9EmOj6dkrCHdizMbDxjrwXH2PXrU02EalIn9b0dSzKmVnXCjW0d xfCbWBrU/pCiljTqmkK0KpDpklwbMJmLxhEBMH7ubFi1adDP/HySCbqbscTyjFpmTmxS RDJ9XwUGlHwCGrmVe8/k0/4PM+X2PdR+DxAnfZIS+gO9PlGYP0uEBh5UbPqQAGLegUn+ yAMMZrWAm5OSn95PLUHlCkKzQZNc8yL3qoYeIyp5pBs+rkCJEQFewhJ0roTw2DhHkIZb 6c5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WRFEmVFs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id s31-20020a056a00179f00b00690c953e024si9768275pfg.119.2023.10.10.06.53.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 06:53:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WRFEmVFs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 82C9280CF522; Tue, 10 Oct 2023 06:53:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232832AbjJJNwn (ORCPT + 99 others); Tue, 10 Oct 2023 09:52:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232276AbjJJNwj (ORCPT ); Tue, 10 Oct 2023 09:52:39 -0400 Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18E30173B for ; Tue, 10 Oct 2023 06:43:03 -0700 (PDT) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-5a7afd45199so15448167b3.0 for ; Tue, 10 Oct 2023 06:43:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696945382; x=1697550182; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=NHv90yeM59s0sxqLXofNmRkQi512BP/YIHCc5n2XRV8=; b=WRFEmVFsknlCGJv2ck7WavA3XMp6eliKBgx+Lq2kq3w8M2mUcxcETJNKOGDauQX2XX +xWmDcjoYlq/3cNWgC7l0YB+pDWuCTSnhDzffnroS0HJ/pf59/Ns+kOe/WgpP1944CYp os8SH02WNTT93fqghJz4apm6Il4IQbWIMNAhmMQkOm7O+okL6oZ572ydkNxyIuu48GRq 4yHYM9uWawQraJyEizwGE/RJC3ZtQk2pv/IM2QFBPynt6qJsTHyPRHslk0nJQ/1P/IhM a7M6ZcvaZN+OlYLOeJKcPDDMP1hzoErv2yNdNWcqwpeGPmRwU4Sd2D+EWGAo5IbDpi4U I82Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696945382; x=1697550182; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NHv90yeM59s0sxqLXofNmRkQi512BP/YIHCc5n2XRV8=; b=tdr3VdOLH9OqgSzuu2kF2Y0dXOPxxe+YUjyo271UC6wbzlaHcCMfWTwSWK/pctoMMB ZRYt2kdDZHSpCyfGBPIZdjjI0pyzeNG+siRKnWRL//mhGf0wE5hj8f9S0d/PHIQ/hODg 9mF4fGMDv7iBDB1ZlXyoQOzKVFnc8QsK2BEqpC9YZvCSGUV8s30UiNG+BH2layty9Bfl gwsRrxF1XS9TnRd3j5g8+uIsJfyqw8KI6BQAIwI8kVJxop0KTOYKt0kPELXvQqLwsmvx qG4+3g61N+cJ+ltYI2t1t+1nIz2yTdacZkDkodur3Jnin08k7P2DxKCLjhoQy9NWvT14 rj3w== X-Gm-Message-State: AOJu0YxzmOwmVGaCELS6MZRFprxYUckrXjmHfTo7Zvr0eUYgFDlpRZA6 DdqLxzznIryJ5uzkum1TPAkIK4mlKIZNMGa6F9I8tA== X-Received: by 2002:a05:690c:4813:b0:5a5:65e:b847 with SMTP id hc19-20020a05690c481300b005a5065eb847mr15101159ywb.34.1696945382211; Tue, 10 Oct 2023 06:43:02 -0700 (PDT) MIME-Version: 1.0 References: <20231009083856.222030-1-u.kleine-koenig@pengutronix.de> <20231009083856.222030-16-u.kleine-koenig@pengutronix.de> In-Reply-To: <20231009083856.222030-16-u.kleine-koenig@pengutronix.de> From: Linus Walleij Date: Tue, 10 Oct 2023 15:42:51 +0200 Message-ID: Subject: Re: [PATCH 15/20] pinctrl: qcom: spmi-gpio: Convert to platform remove callback returning void To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Tue, 10 Oct 2023 06:53:03 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 9, 2023 at 11:22=E2=80=AFAM Uwe Kleine-K=C3=B6nig 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=C3=B6nig Patch applied. Yours, Linus Walleij