Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp149477rdg; Tue, 10 Oct 2023 06:47:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFhC1Zld9C/cizjx+iTvw3dqqXVkYSTfth/gmQk5Lt+45gLincRIFPyfz1I08xy/NYyYZFx X-Received: by 2002:a05:6808:1798:b0:3ae:2024:8389 with SMTP id bg24-20020a056808179800b003ae20248389mr25210156oib.36.1696945650338; Tue, 10 Oct 2023 06:47:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696945650; cv=none; d=google.com; s=arc-20160816; b=O+yICztFeAhMvGlCMZpZs9j1i3o+MsxZ/6fL2P7VjfADB7HuhsC6sdtV0EJmlIKySZ fMozoY5G7Hx5Jmt0a9vPIdytdPweohDMqkWeCmmqI38BTJPUO6uUHruxOeXJl4bc6KEh +Gwdy1fb3OOAY/u66QYaRZV2GUZ+cYeyPl0X2+99C0+gWR+snyO8vhB+BZIByUZmgGfU 8/BGoKxIJCFuaYgJh7N5KQdIkcqMgmPA/ju3EWobBl93q+xTN8+czyOHdrnleyJLPuo4 ksIbcfVxEqxogg5kuwkUQxlD0S2PwLC3w7G2mVbn6SwTwdXU2xrIM2WnnT+UeKGxDw4T ThlA== 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=dWARPhe8bOiyDoSaOS0tR/qj9ylqIQbiT/Od2IakWE9m67w98lMScu9E2Js7TSNrf2 ruVBuP4K52j4xdl6EhsdZCRvx011Jss+KmrLL/paPmNRPAQhO0BmYCJs0QQqf4Rpd2ta KYv1fS/5BrhbMg3MRaogVxdkTjpdtiFj1Z/E7kvUUXsP56EKAqOVglvLOYrhrlfeH9B6 EZvUAz1Bxi4TPdqym43fwDPHkUnE4ODrpGDQHoxnSTdpG8ZjQxrDI4bQi/rBob8L6nzu 2w2Mx60OJ6UY09C3O/twTKYTYedqH9Boq2tb5t1FjNd29V746cJe05R+nHze3AqyLfsJ T/8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CTyBwscD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id 37-20020a631065000000b00578dfc8f11asi11537354pgq.792.2023.10.10.06.47.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 06:47:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CTyBwscD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 6D2C7809078E; Tue, 10 Oct 2023 06:46:06 -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 S232727AbjJJNpM (ORCPT + 99 others); Tue, 10 Oct 2023 09:45:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232734AbjJJNol (ORCPT ); Tue, 10 Oct 2023 09:44:41 -0400 Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7491170A for ; Tue, 10 Oct 2023 06:43:57 -0700 (PDT) Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-5a7cc03dee5so4291637b3.3 for ; Tue, 10 Oct 2023 06:43:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696945437; x=1697550237; 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=CTyBwscDdXRHfa357oTE1VQHcc+sWJybRzF8l/lDUwTxVNEzcHhFmRPIN7iVX00q5e dL9Jv9oWpALsKF3Vy4wCinfh64MMftWPbosuSIXO5s8RW71Mt3gC/6G/YQQrbwJECQ2P +8+ezSPRw05/LCXXRoXz/3ghL+l0fg42OEBlXQeluuz76mznXEiapmeeAZFXdo/1GZr8 2Co7IJtOSlfAl1DwAfrWMaSmrGNXKUWGhvlA5Q5OPTfp2SqJlVIkgWjUdGPEGEI+/eZ4 U1veRiqf26prKpGFZ2KMqw16DqRp8K8dfl4WaPdUwIS8cc8/iXw05zYoNqD2xfnKqNjX Axcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696945437; x=1697550237; 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=Z93l9x49EunSSz6NkAwgj/YBr6vnOqJzpXlJU0+q500AOXfld9XMcJF+ysPe5AR3rT byCDpeHv/NsQiJ07Y/McS/yMYp/ej75vvp5JB9uZNCvLskuSiQMyD/cyrkdyOijn57+J 1sGrC+rKkZW5xO2Citj0QqNf6790PCgDicrvADtVpue6PvhFJh9qxL0SrxqJZ0XGWn7i 4m3W8pceTZpzzD82tRutGHh2U2bSwo3illEFGpYGBHvmsHHqft7yynGRagjvFTPeTq0m FTCoCJh+mEhpCRdeog+9l3NFMIwfBZsjfZfzq+0rhbrUOAo/7+t2b8NvPG5BkjFeEFMw LqSg== X-Gm-Message-State: AOJu0YwZMAFbJQoAehsaSphVWG2mj3F4ogA5thfLAjoSMQ5/sbhwKT62 vgD6mnay2bNIqiL+sx0lxmM7o1z9dQ1bd5Idj9gsZzdiljdQG/x/Sbk= X-Received: by 2002:a81:83c6:0:b0:5a7:b96e:9693 with SMTP id t189-20020a8183c6000000b005a7b96e9693mr2720838ywf.31.1696945436630; Tue, 10 Oct 2023 06:43:56 -0700 (PDT) MIME-Version: 1.0 References: <20231009083856.222030-1-u.kleine-koenig@pengutronix.de> <20231009083856.222030-18-u.kleine-koenig@pengutronix.de> In-Reply-To: <20231009083856.222030-18-u.kleine-koenig@pengutronix.de> From: Linus Walleij Date: Tue, 10 Oct 2023 15:43:45 +0200 Message-ID: Subject: Re: [PATCH 17/20] pinctrl: qcom: ssbi-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 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:46:06 -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