Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp149412rdg; Tue, 10 Oct 2023 06:47:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG0qDBY09vYMtW4Bb5Sp8amSpQIQJ5etHZGDZP2pzlR9PrfzuZMP5qasCvctu+xwi6ziOBx X-Received: by 2002:a17:90a:d707:b0:27c:e74a:a4b1 with SMTP id y7-20020a17090ad70700b0027ce74aa4b1mr1888500pju.36.1696945643892; Tue, 10 Oct 2023 06:47:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696945643; cv=none; d=google.com; s=arc-20160816; b=UCH+xY9fG+m+9UzQfMsGIeMNA9oVsZMyw/wR09i4svG0KeqkSL3XZ/tBrKYwLjkaY2 wb/9HdDJQmo6E063aaZ7M23t9siNasmNWKxNKJYgzKdzmJmo3C6pue1uYz1PeBXwz7Xx Dsclq3kasLv2r2QePW6Y8Z6OPiw/kgRxskcPQLD0dtBM4mg9kU+dbn7ydXZQTVLh8tbM QAlNUked6lmQ1wJmwYYv2qs/w+KZ3hgmfbyM2LGniO3ob/hdsOwjPj3RNmNv78wlQaS4 J/UzdA747X39wsc/KZrfOpOMc9boAwVmtkvkyrnlw/JUGPvVtOO/tVCwtKCgJQ1/N9PM GYJA== 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=LbP9OR7GPdO05gL2BCBuLam01QmljGSdicT/36jlIc8=; b=FhCtfp6npNfWTUhitYLZLcyQyZenL0rhW9El8IBrt6pjFmRHyY+ismV3dBkfUVYnBO vNZr/Dol5kjshPfbtKjCnm/QbrzQXL/QKfppPN9ZACAVZWNlcME52KBnukOINsiA30D1 +WWZHvttgmuri/9Efgvw1t7IJluWOHo37rAnPThII/WOxHktQoeW+fd4hhtP3D2e50ZH Qq1yx8ZKoOZYqYiUmydWD8ZWemcNfHS7qWGcv/aDziGGZ6GxX747rF4aaUmloX3bccjX kedz8R9a59QDK6BQvyCEmyEXRxj6Lf6ZqFbgKXodX9Z+JGS9Z6d1DKu8/9SDdpjlTiIG +EiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iU+P3jUe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id kk1-20020a17090b4a0100b0025c1d114af0si9393962pjb.93.2023.10.10.06.47.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 06:47:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iU+P3jUe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 961D88087258; Tue, 10 Oct 2023 06:45:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232771AbjJJNmy (ORCPT + 99 others); Tue, 10 Oct 2023 09:42:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232793AbjJJNmO (ORCPT ); Tue, 10 Oct 2023 09:42:14 -0400 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 050EB198D for ; Tue, 10 Oct 2023 06:40:10 -0700 (PDT) Received: by mail-yb1-xb29.google.com with SMTP id 3f1490d57ef6-d9a6b21d1daso518653276.3 for ; Tue, 10 Oct 2023 06:40:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696945210; x=1697550010; 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=iU+P3jUeRQTOL6K8ZiDZpR+KxqDJiJG3z20HoibiZzHaTMmxvrL4wKGecYVe1LCh8s U5UnCHXJZu5h8IRri2QyQs8bCoBwD3bt4pNPr6Y4E3YX8VHlo+WpHKBXDgzwSyjth2r+ /3foJe+ReZ9QwQuASSc/t1aSqp3yvhnkh9l78EwZ1UDJPuPev0p/7ZpZ4hLG6vOiM3Pp yibqs2Z7q19YZgOWPkrNyTz8ECEqw7nuac3AMWIfx8tgN2trz7n2QxvVtNjraHGqfG1w ISX6q3swN+1eYbSkLBp62v2Ka0IPhnmzxDFsR9yoSK9X+gGjUiTidQBBa8IBQEPk6jT8 6zcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696945210; x=1697550010; 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=d83rjO4yujDuO49P/lOr/1cG1voQP6v5jsEtNlmjyWVg+Kk8fXMmMe2rIB5bPiGtEB RFQ4QwRqGXiiayEqYLDRtAlwtpsCvviHO87MFeBHPSMbdnup7thOhW5hdTWq41OhkRKt SOah/yk/nhDoQyr2ImOE+in/d9ZDrvLGiYZFlAw02PLx1vH20OKvaXYXPEqxXZcGbHQ6 /E1KrOrHCiPWEBV1Y04cGdHejLPXiExTZJcXEBr1Ko9gQh6RDMCxwe/K9iqFHA2xCmdL 7n8eE2j2/r02V3wz3W2uA9wzsTYMwSMCZvjLdWb6HC++0FOB8Y/5An4H1+1UbecxLkL7 EE3Q== X-Gm-Message-State: AOJu0YzXzalN1h18chtH3Bty/h9cyFlPbHebzrXllX3I0Hh6SGn/gt/K OI+PRoun10XEUF0w/Uv4M3A5ZzscqSm49mkBVSq2nA== X-Received: by 2002:a05:6902:1105:b0:d81:5436:9893 with SMTP id o5-20020a056902110500b00d8154369893mr19893265ybu.21.1696945210160; Tue, 10 Oct 2023 06:40:10 -0700 (PDT) MIME-Version: 1.0 References: <20231009083856.222030-1-u.kleine-koenig@pengutronix.de> <20231009083856.222030-11-u.kleine-koenig@pengutronix.de> In-Reply-To: <20231009083856.222030-11-u.kleine-koenig@pengutronix.de> From: Linus Walleij Date: Tue, 10 Oct 2023 15:39:58 +0200 Message-ID: Subject: Re: [PATCH 10/20] pinctrl: as3722: Convert to platform remove callback returning void To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: 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 agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 10 Oct 2023 06:45:32 -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