Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp149197rdg; Tue, 10 Oct 2023 06:47:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGLiBdPuJDK96Khu2uHFnWdBEttOrqySttn8ELw+u+K52D/Bq/isvNVnyAVnhvH5bRf2PxW X-Received: by 2002:a05:6a21:9997:b0:16b:8b16:bfad with SMTP id ve23-20020a056a21999700b0016b8b16bfadmr11570717pzb.32.1696945623451; Tue, 10 Oct 2023 06:47:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696945623; cv=none; d=google.com; s=arc-20160816; b=dJEohrSh7HeptuU2mGjWtItMg7QOsBFyW5I5JsepW0CAOtjVRnPocv7IG4EFVgp8dP xF8bpW1Nb3APVxmqOfYG84it8NfXWnfDmad1aAfU0X7gslyF0GN/P4EohqbWSuH9TE/3 0wsDVXYjc2a+dOv5t2/z0ETNhJrkCdVtPSRTx3Rjb0hwv3HMOQAvmf2tOR+wxC7RFj3S V7s5LzpX6RlrS6HTemvOz88BAxGjkJEIrfAwxX662QvP6IZdBU5ArMUJs0xaX2WX00NQ CK/5Dh4YK5oKCJUIgG3ms8NigVDQK5bPSirPE71lOTdTah00ycQm89njnkNPu2uhf19p mNWQ== 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=Qu4kzXiw+o2GvZwI3Fm+bM4+LUsCUmCDKGWtAwfpTP5Gk9pBC+kG4IlIopCz3jL4dA N0zzaUHsJqeF6XZLCpi2Ma5rdmGtmTMrZPAuilaS//bDz6qMcFqhqA6ZGG5HHIuTE5CQ s3pXwjf4yaxpSwShag79vQWe/+LDva6f3vinKJ5gAMMJqm5LLU0ZWRYBkI0vrdatU/m7 jR42ll9+X+QumHslsw8BPTtm6r5xecvA0CfFqMxmWiagCqfdNpzWh4QTp8hyruo5S0qU nXeiB/L9NUTAM0hnekGBjj7OnsOtUD7mIGmaWBfuoKreRfUrLEQHOryGOBIrdjohRakE VcCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hfd6muxu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id y9-20020a056a001c8900b0068fcb9a7349si9403665pfw.349.2023.10.10.06.47.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 06:47:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hfd6muxu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 2F6BD8083AE1; Tue, 10 Oct 2023 06:46:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233080AbjJJNpb (ORCPT + 99 others); Tue, 10 Oct 2023 09:45:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232364AbjJJNoz (ORCPT ); Tue, 10 Oct 2023 09:44:55 -0400 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A11D2198D for ; Tue, 10 Oct 2023 06:44:21 -0700 (PDT) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-5a7b92cd0ccso13076547b3.1 for ; Tue, 10 Oct 2023 06:44:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696945460; x=1697550260; 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=Hfd6muxuY+9Eds1eZ+RBD0C2c48CH5u9Dx6Cd2hpm7k5jL8xrI3/TEKmfRwjQfrzoR uIv3AbVVXbCh+0OlS4InjO1VJwUuXyR1hGgQ+boH4qYdbNa0EWlzLsRA3VTQ2t2FyNP+ xbR901yxHOr8lGLdWD1Xc3NiKXZUpx2yGDQH/mmrDC2NW9nWsgK1+ETKHLDwYqtpTd2C ZgqX7TgJvQxlpmjs1a/RoS/4cEaAsyJm8SSE1dRWP+oinhTk/ZvXX5eZYnVYcEnaMVYb QBb2I+HSQgzEqVsYdlwot2gjBXT7OEQuvJLfpWBK2ea6kkSvbxvpJ2+g/+DVbTkMZOaT glyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696945460; x=1697550260; 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=jkvBkUcYJte/4vfZhX442srUC6qw3MzjpAx/hK/9YaEn4V1xj4gIGrevFbBe2WlJJ4 zdNYpEkF5+koBYnIUAS+m7AafQnGvEJqKVK+TtbnNVj/QB6QpnvI96HU11cN2F5XnMz0 jdmTyuMqZubjw387lYRqBJCVVUhh8Sfvg/BhmMPbSZxFpYJGsojjEGDqtPoCYCcZUefM M6n5++xL3OfL5QXxuhoI2y+KDYpkyKnymEUBiCD5T/GQaNWWoGEXQ2Q7tNhpaYKpnPHh QtEkBTr1t8+10EWHUXwDCFTJoDhYS7qvYehV1AB3+Wd3GLs80i6psJFT2UkVDpK+a1yE vEbw== X-Gm-Message-State: AOJu0Yw8WOV/k928DgjJZsZqxdAmHFdCSaxunj26799PGvq8dfo15zl9 JCzy/Y4MfU8jWJG7QLGTesx5xWzsLPWx3PorPuGntHC/RIZLRe2dtW8= X-Received: by 2002:a0d:df11:0:b0:5a7:b81a:7f5d with SMTP id i17-20020a0ddf11000000b005a7b81a7f5dmr3036369ywe.18.1696945460664; Tue, 10 Oct 2023 06:44:20 -0700 (PDT) MIME-Version: 1.0 References: <20231009083856.222030-1-u.kleine-koenig@pengutronix.de> <20231009083856.222030-19-u.kleine-koenig@pengutronix.de> In-Reply-To: <20231009083856.222030-19-u.kleine-koenig@pengutronix.de> From: Linus Walleij Date: Tue, 10 Oct 2023 15:44:09 +0200 Message-ID: Subject: Re: [PATCH 18/20] pinctrl: qcom: ssbi-mpp: 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 autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Tue, 10 Oct 2023 06:46:40 -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