Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp149793rdg; Tue, 10 Oct 2023 06:47:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHFQbspWg3IQe1/2Ckl2rZiU7sYc2x6FPAArBbXL10aQ2yorONDt4RgAYdRZ2zMXIHFHy3K X-Received: by 2002:a17:902:e811:b0:1b8:8af0:416f with SMTP id u17-20020a170902e81100b001b88af0416fmr23733132plg.1.1696945677570; Tue, 10 Oct 2023 06:47:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696945677; cv=none; d=google.com; s=arc-20160816; b=iKS2CmB3zAeD+FPxxgpdEuc8W5/hOHlAqJ1L5zioY+YmZJ95ubk+OqNSVCJxOHsemD syTngdy5U40niyGDy9dN9mVMmzKt7e9/aVth4g4LsGD8s1n90MVfqNZz+kT8MAqdz62o p7gp1wdkfI7EhUELFQJOIz6NRudSOJs+J1Aqzpw/3uzwAcxE5cxceohbcxWsDbC1bv2l fti66kHXNTb8ZErDlqKU/iIW0NfcyndlrjFtZ9vOdVPayBHwOcELAk83sfTGQy6REvLx hU9yuR1HYSxmFXm4Y9EF2L5AHbH6ldiGVVH0XLY07Z6Ht6BaHzhnWLNQ7xp0eChPudc/ R1EA== 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=zzgdhDx4tBkAxMqqERDECqdWUZIfgi8g3zKOW8PyQy0=; b=BhaTCcv7CZcwq7ojKFZ8D1L14eDCJGvjlG04/7QH5H0xNxgn7YvTiKLQHkvylTfQGl lYobllyWTduUhpXH6XGF4XwZnTpG7ie/LxliftKaLA2PtMzirSobW6N4MYVt9piBi8SF zOOt0LxRQ/DMrJASQPWcM90jM7Mzbl2Old3pU6lvj7RcS/5U7UtP+4MEwe/z9W1offvJ U0soKKpNMNbZu9P/377VcRYyUSsKGEBAVOQxx3swBit7k7JNnSDAkkuR4/kL3AxIyqqU lBCggxB5ldMTm8b5PEMp3m9QMMsK9dMCg0twPEsBV8hQ2tHtQ1yWFZvgivq8M2KBXYKU onPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bDsg4HyB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id d17-20020a170903231100b001c3fa95ca18si12802160plh.333.2023.10.10.06.47.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 06:47:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bDsg4HyB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 27BB0808D694; Tue, 10 Oct 2023 06:45:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233041AbjJJNox (ORCPT + 99 others); Tue, 10 Oct 2023 09:44:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232364AbjJJNof (ORCPT ); Tue, 10 Oct 2023 09:44:35 -0400 Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 002A910F7 for ; Tue, 10 Oct 2023 06:43:31 -0700 (PDT) Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-5a505762c9dso69522727b3.2 for ; Tue, 10 Oct 2023 06:43:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696945411; x=1697550211; 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=bDsg4HyBxnQj9BsGh73No5c+i+SJcn+iAla/q4BV25JQKEFfZ7rnoTHF9k/2+GtiiF 2pR40bmpI1/bh84IPDsZ75U1PXjyoWvbTbLRZG4OTol2XMpRHkifWfKSTkjxJOTdqGjN E0etK0PPePZQaTTJtVYRItiErhQrEpTC1LQxqmmrm6216uH7G7nNcsBHwgGPJJSpsIlx fNItgE0FmXR05l96oHgz80jhWQb9zylbjTFEj3r2hMQlSW+UpVHJao0SyBdF3fb37qlG RMwS0JSLdr+lxlYmuLA4EUQDncD1/0e/wp0NSZn7PLk9UlXDcN09uut2G56354l1aQjc 7JeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696945411; x=1697550211; 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=XHTGuOE07sM6y2gvmMtjjkQgrdUWsFgbi7FegOCI372/6j8S7BszToD1kzclEU3rhb pPZTnDpau5dVCjFjJUoqVcEwjVttnKu6Mx3kpMLO5yIs5kRF03/dtCr22GOcRuYQ6gGV cjwSVxGhnanos4o8qUGxxiwE4Al1l6Yc372H1wiUUmT3GaK+qFVA30dHmAUTEGWhLzga k6/v7sgshdxzyfWtxtO8GPLD7UeuH6Y24KNhTYo7viYHqZlRE7inP5NTZQU3nONxwB60 1h64bBRfGHOuZ8ItXIDVfuypoHO7muAyEH/i/muzn44VBPmMjSHw0MYz236DDIcHUsfn kXqA== X-Gm-Message-State: AOJu0Yx3lKG32mFy/3FXpPGNE8gkkCxpu+Dfu8FmmlB0vtdSCZVe3Ud8 bFVTSjcCeZrlkuebPaO4+MtgVk0aXn239SAOhIzcng== X-Received: by 2002:a81:5b02:0:b0:583:a3ab:b950 with SMTP id p2-20020a815b02000000b00583a3abb950mr16262239ywb.50.1696945411098; Tue, 10 Oct 2023 06:43:31 -0700 (PDT) MIME-Version: 1.0 References: <20231009083856.222030-1-u.kleine-koenig@pengutronix.de> <20231009083856.222030-17-u.kleine-koenig@pengutronix.de> In-Reply-To: <20231009083856.222030-17-u.kleine-koenig@pengutronix.de> From: Linus Walleij Date: Tue, 10 Oct 2023 15:43:20 +0200 Message-ID: Subject: Re: [PATCH 16/20] pinctrl: qcom: spmi-mpp: Convert to platform remove callback returning void To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Bjorn Andersson , Andy Gross , 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 lipwig.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 (lipwig.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