Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1956634lqe; Tue, 9 Apr 2024 05:57:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUrV0pZefhNrUPmb6KPJwq2Y+/jsGFnrzzW7Demrd1F/zVZIRWxz+n6rUXdmVBSLv8u6kkT7Oid3XF/1Du/0L1HiG85bMERCVO/cWPxvw== X-Google-Smtp-Source: AGHT+IGKFqNFsf/t8FlITdtOoKdeGfQFk4ys3ivSkhzMyrSiQ01LOiOhHUjPYhLw5zZCRNtd8r4g X-Received: by 2002:a17:907:20b7:b0:a4a:aaa9:8b3b with SMTP id pw23-20020a17090720b700b00a4aaaa98b3bmr6332771ejb.77.1712667428515; Tue, 09 Apr 2024 05:57:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712667428; cv=pass; d=google.com; s=arc-20160816; b=GwHStom56rFD4Uh5EVrpxjlwSrRtS9RVxRx2rf5wTX5VgsXFJ8gx9MhP81bWGa8PlZ nZpOebWW8oIq2miNUPhoZW0LjKPGnud9GNrvaCavMqBbxqDr2yTUKzrPuTEQmWnmZ9pk wrbRLp8rppl/od/2H4DA7lkYsjNSGWODU6Clth2bVfLKbsIjASQVJa6/j+q404R4GPH2 PHdqrwn2l/qA0XMgc0LxFk30NhKhZdKEpTaDdg1y0OnabkvAvTAiibwtOFsmuovOBqAj 1wm97XAIigUC1AcbctqHfmemjnqM9c1wUKeSbNIG0Y4/+ZTeA/SxDTrK5kAhx0YAsgqc y3fg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:cc:to:from:date; bh=Xn2BvEX3XTP5T0+ZNMtu1oV8xHbiyciwjkjF5Z0kHhU=; fh=M65bjMmn3nxB85Pu9cagZrgHRhYT7DSn8jfsZY5qkM0=; b=DyCj5NsfqQisQc0Kcuheg4C6mxzWeaB8ePyqcSjOLAdpICO+R4qdGdCkupQvC2DU6l +gozH/64K64IZ7cH40IIUSEGDx1i+LDs7oZp7QYLc44mlpQ/QYH68EfD7Ggx0Pod6U5t 0voAEOvBoY4VZfoyBubxZg3/K6ag1U7FSFU3WMj/Z2yyFZWsDcOUdKANJmL8W6fQld2D oc4+EdoyHtSqX5CcO+de0izwIhLfyitoFXPN3w1wMYBQ5PVNTkE+nKWBe3JjcKT92Gru Xy7zEcFX8STgzXbZhBdHNm0klFyJYDFa8BIWqg8cnGxrru8TK6yEWx7BV3/c5p4ggRWV 7gVg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-136895-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136895-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l16-20020a170906795000b00a51e060744asi1502840ejo.836.2024.04.09.05.57.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 05:57:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136895-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-136895-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136895-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 514CE1F24AE0 for ; Tue, 9 Apr 2024 12:54:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A8CF512DDAD; Tue, 9 Apr 2024 12:54:47 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD540384 for ; Tue, 9 Apr 2024 12:54:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712667287; cv=none; b=P0eRQuPRTRui3i4Nopf1T7U4LaZab1fq8GxbHXpaqpqDdJoNffsSLOP0iJ89nwfifw74h+rOfa5X47ehkZ2JKSp5O2Yzsq+TCri9/nMHAKoCWfn5W8xKuLjGqHjWELdmYNAqCwRZ/QuRBi/puz4/m2jijr16OxU+ubvrF0rJkAA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712667287; c=relaxed/simple; bh=K2X/fdC9FmUWPg8OZyLIDugRhEiOa+pUKoUIsMvmlSQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=F8ewrLKaUiQ0XNeYaZnVBwtcpd65A4AOiEKEsdSfMysydSb/tSUaVNAQo2plzQRvlZw89C077B9sQWIhanpDGSlaYR+Cuayscj5ry7TLL8yvktRr1j3L1ks0YmxlPs7n6qpT33gwfMUa3U6PLfoI2ji6CZcxfj1TVaaFf1l1vng= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=fail smtp.mailfrom=kernel.org; arc=none smtp.client-ip=198.175.65.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=kernel.org X-CSE-ConnectionGUID: BwSXjRIcTlGgsKogAbD81g== X-CSE-MsgGUID: 1j21BcDOQjKywTl7+1c/bA== X-IronPort-AV: E=McAfee;i="6600,9927,11038"; a="8081107" X-IronPort-AV: E=Sophos;i="6.07,189,1708416000"; d="scan'208";a="8081107" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Apr 2024 05:54:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11038"; a="915399138" X-IronPort-AV: E=Sophos;i="6.07,189,1708416000"; d="scan'208";a="915399138" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Apr 2024 05:54:43 -0700 Received: from andy by smile with local (Exim 4.97) (envelope-from ) id 1ruAzp-00000002o9t-1dxg; Tue, 09 Apr 2024 15:54:41 +0300 Date: Tue, 9 Apr 2024 15:54:41 +0300 From: Andy Shevchenko To: Geert Uytterhoeven Cc: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Chris Packham , linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH] auxdisplay: seg-led-gpio: Convert to platform remove callback returning void Message-ID: References: <20240409090306.29284-2-u.kleine-koenig@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Tue, Apr 09, 2024 at 11:29:06AM +0200, Geert Uytterhoeven wrote: > On Tue, Apr 9, 2024 at 11:03 AM Uwe Kleine-König > 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önig > > Reviewed-by: Geert Uytterhoeven Pushed to my review and testing queue, thanks! -- With Best Regards, Andy Shevchenko