Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp643236iog; Wed, 29 Jun 2022 07:26:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vt78Kz/sSZkL/kJtRmLRr1sYz9sm6WyTSFEjkhUBkf7IWgrJsctnWATTDOMHpdYpXqiuSl X-Received: by 2002:a17:90a:e4cf:b0:1ec:c45f:c884 with SMTP id e15-20020a17090ae4cf00b001ecc45fc884mr4335834pju.50.1656512798476; Wed, 29 Jun 2022 07:26:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656512798; cv=none; d=google.com; s=arc-20160816; b=i+xic1GOQ4DBoFSdgqZng5s4qxex/XLREAGu3YSMXKZD2ocmjZKmkUa6hl7UMRZ7w/ l8X+cSwGFpF67OKNqHRDWld24mSaQAwvLyvczrhSY8eXJoeP7w60GA4GlTETwPJ3O5ob d2nH3AflLLoATinH+0zO9FgehaftqVlsy8fzcknx1PrfqcZuwIYsuTuOfSX14/2xfgbE bSG9+TPWGdG/ZEgPomZnQ/11fYnY+UGitQz2YSZ7WT8ICViVIgX1CnWGYeL/fdI54sEB vrZJucfStt3dVVCZHMIja1G6SVsXdZqiFj77xX6e28Wz+9I7N2wNw0TvWbrnrSmFsUIL OUEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=nzVAkjUIXnSmifmZO/KNuTW33GCGTCzsi9aX026XXeg=; b=m0op3fUZ+eN58mU6snkrCMjx8z+nz+SB94w7zTKGhKxyGcPGrqqO4jsxMb46L+4TMe ok3UJPyBYDFfK5xMsftZyM9Uuov6JMPRSVJInoRmhQzZw5bpOjHo3Fh5Pc+Iw9lWBBo8 SCImfEJ5oamKWtqfrD/Mct2lmI2ASdZ84HIFCxHkDWlxQr5vLT4HCaWmd9RiPK2n1mln 9EZKKeQfFMAVOHWyTPPPgk56QkvOhm6QkUWcD/ubeXW7zPTh42vMc6+ykdajN+bJbbHF UydRdRN3Gc0+xyCLwJM4yvJXYNvBfxZJ+YO987g6HKzVNC8fv6h/5bouLu6yW7r96NKs yd6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="S2dVib/e"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ct21-20020a056a000f9500b00525ab05245csi12735248pfb.176.2022.06.29.07.26.16; Wed, 29 Jun 2022 07:26:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="S2dVib/e"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231811AbiF2O0C (ORCPT + 99 others); Wed, 29 Jun 2022 10:26:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230240AbiF2O0A (ORCPT ); Wed, 29 Jun 2022 10:26:00 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C74A93190A; Wed, 29 Jun 2022 07:25:59 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id mf9so33053848ejb.0; Wed, 29 Jun 2022 07:25:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=nzVAkjUIXnSmifmZO/KNuTW33GCGTCzsi9aX026XXeg=; b=S2dVib/eYmAFl827WdIoCLllzfbxALRjIjzfRRwuBWpdbVEMsjXdf1fQZ0QK1n2n0J 7Rc0uKmDUlj06sv7gme85B+3fLmze+mOouy0tIsuBDVpy1nD4eEh9k2i1LyAyfo/z7Zj KDlk5RBwfb1T/0o1rVzuZORFiKZsCvSsNfve9fNt60vuT8XdzQWLTwkS/9FAhK69nmEs mEzSIHBFyIvznhb3ZYEmWznM5HxrpFTwi8PXn2kSF7LDJWEQQU2316sTZ03OvudAaN+G thYeRK11RnXT7zItby/QP43/O2E1Z4EfVZv3Nyn7dRrR7zoEuvKZKKrx+f9P5pfvx3Rg uLHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=nzVAkjUIXnSmifmZO/KNuTW33GCGTCzsi9aX026XXeg=; b=K+/sP/hRrNW2dKVpBtInRhRcLgevV8ty+8mr5yrNwVTd2440sDwaFo+X70nnHqBZAM O1e8Mt2RDyCnrbwIY3Vfho714AOnWqqXNMH6wDFomSZQxVP/5hLg590W2SFDcCNq7n0j dUBbh1mohPAsDDqfwTtDNwtKCgpxtJ7iwkDUt4rOj9rlVZxBDAQBZ70wGo35FmuOBC3u xejORvqK4II7TIRohQmMq2TK+l0mlnshiOzW+PTHdSVBC+QokePfjOGSPUlKUtHUWTqi 1dbdYVekSRxf7honXKELQjw3s2sJFpAo6ohp0sneZck+CTstgY3IOQrAz3PYuH8xBCno LsNA== X-Gm-Message-State: AJIora9fPn0c14bXzp6tnc7I4qM66JCoAiTwWqMctW6cwVtnVYc7d4n8 MWmqpEuyoC12RWdG8cu+TcE= X-Received: by 2002:a17:906:58cf:b0:722:e4e1:c174 with SMTP id e15-20020a17090658cf00b00722e4e1c174mr3593366ejs.85.1656512758310; Wed, 29 Jun 2022 07:25:58 -0700 (PDT) Received: from [10.29.0.16] ([37.120.217.82]) by smtp.gmail.com with ESMTPSA id jy19-20020a170907763300b007263713cfe9sm7220580ejc.169.2022.06.29.07.25.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Jun 2022 07:25:57 -0700 (PDT) Message-ID: <80117936-6869-19b2-45a6-96a4562c6cd2@gmail.com> Date: Wed, 29 Jun 2022 16:25:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH 6/6] i2c: Make remove callback return void Content-Language: en-US To: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , Wolfram Sang Cc: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , Miguel Ojeda , Jarkko Sakkinen , Stephen Boyd , "David S. Miller" , Jiri Kosina , Benjamin Tissoires , Luka Perkov , Dmitry Torokhov , Bastien Nocera , Hans de Goede , Mauro Carvalho Chehab , Shawn Tu , Manivannan Sadhasivam , Pengutronix Kernel Team , Kyungmin Park , Andy Shevchenko , Arnd Bergmann , Greg Kroah-Hartman , Jakub Kicinski , Rob Herring , Mark Gross , =?UTF-8?Q?Pali_Roh=c3=a1r?= , Mark Brown , Nathan Chancellor , Bjorn Andersson , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, openipmi-developer@lists.sourceforge.net, linux-integrity@vger.kernel.org, linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, linux-gpio@vger.kernel.org, dri-devel@lists.freedesktop.org, chrome-platform@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, linux-input@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-iio@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-leds@vger.kernel.org, linux-media@vger.kernel.org, patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-omap@vger.kernel.org, linux-mtd@lists.infradead.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, platform-driver-x86@vger.kernel.org, acpi4asus-user@lists.sourceforge.net, linux-pm@vger.kernel.org, linux-pwm@vger.kernel.org, linux-rtc@vger.kernel.org, linux-staging@lists.linux.dev, linux-serial@vger.kernel.org, linux-usb@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-watchdog@vger.kernel.org, kasan-dev@googlegroups.com, linux-mediatek@lists.infradead.org References: <20220628140313.74984-1-u.kleine-koenig@pengutronix.de> <20220628140313.74984-7-u.kleine-koenig@pengutronix.de> From: Maximilian Luz In-Reply-To: <20220628140313.74984-7-u.kleine-koenig@pengutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 6/28/22 16:03, Uwe Kleine-König wrote: > From: Uwe Kleine-König > > The value returned by an i2c driver's remove function is mostly ignored. > (Only an error message is printed if the value is non-zero that the > error is ignored.) > > So change the prototype of the remove function to return no value. This > way driver authors are not tempted to assume that passing an error to > the upper layer is a good idea. All drivers are adapted accordingly. > There is no intended change of behaviour, all callbacks were prepared to > return 0 before. > > Signed-off-by: Uwe Kleine-König [...] > drivers/platform/surface/surface3_power.c | 4 +--- [...] > diff --git a/drivers/platform/surface/surface3_power.c b/drivers/platform/surface/surface3_power.c > index 444ec81ba02d..3b20dddeb815 100644 > --- a/drivers/platform/surface/surface3_power.c > +++ b/drivers/platform/surface/surface3_power.c > @@ -554,7 +554,7 @@ static int mshw0011_probe(struct i2c_client *client) > return error; > } > > -static int mshw0011_remove(struct i2c_client *client) > +static void mshw0011_remove(struct i2c_client *client) > { > struct mshw0011_data *cdata = i2c_get_clientdata(client); > > @@ -564,8 +564,6 @@ static int mshw0011_remove(struct i2c_client *client) > kthread_stop(cdata->poll_task); > > i2c_unregister_device(cdata->bat0); > - > - return 0; > } > > static const struct acpi_device_id mshw0011_acpi_match[] = { For the quoted above: Reviewed-by: Maximilian Luz