public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcus Folkesson <marcus.folkesson@gmail.com>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: linux-iio@vger.kernel.og, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 5/5] spi: make remove callback a void function
Date: Thu, 27 Jan 2022 14:41:30 +0100	[thread overview]
Message-ID: <YfKe7wmORV/NB6K6@gmail.com> (raw)
In-Reply-To: <20220123175201.34839-6-u.kleine-koenig@pengutronix.de>

[-- Attachment #1: Type: text/plain, Size: 834 bytes --]

On Sun, Jan 23, 2022 at 06:52:01PM +0100, Uwe Kleine-König wrote:
> The value returned by an spi 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 <u.kleine-koenig@pengutronix.de>
> ---


>  drivers/iio/adc/mcp3911.c                             |  4 +---
>  drivers/iio/dac/ltc1660.c                             |  4 +---

Acked-by: Marcus Folkesson <marcus.folkesson@gmail.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2022-01-27 13:41 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-23 17:51 [PATCH 0/5] spi: make remove callback a void function Uwe Kleine-König
2022-01-23 17:51 ` [PATCH 1/5] staging: fbtft: Fix error path in fbtft_driver_module_init() Uwe Kleine-König
2022-01-23 17:51 ` [PATCH 2/5] staging: fbtft: Deduplicate driver registration macros Uwe Kleine-König
2022-01-27 21:36   ` Uwe Kleine-König
2022-01-28  7:16     ` Greg Kroah-Hartman
2022-01-23 17:51 ` [PATCH 3/5] tpm: st33zp24: Make st33zp24_remove() a void function Uwe Kleine-König
2022-01-23 17:52 ` [PATCH 4/5] platform/chrome: cros_ec: Make cros_ec_unregister() return void Uwe Kleine-König
2022-01-23 17:52 ` [PATCH 5/5] spi: make remove callback a void function Uwe Kleine-König
2022-01-24 12:23   ` Andy Shevchenko
2022-01-25  9:35   ` Alexandre Belloni
2022-01-25  9:44   ` Stefan Schmidt
2022-01-25  9:47   ` Jonathan Cameron
2022-01-25 10:29     ` Uwe Kleine-König
2022-01-25 10:19   ` Miquel Raynal
2022-01-25 10:25   ` Claudius Heine
2022-01-25 10:37   ` Geert Uytterhoeven
2022-01-25 12:43   ` Lukasz Stelmach
2022-01-27 11:39   ` Ulf Hansson
2022-01-27 13:41   ` Marcus Folkesson [this message]
2022-02-08 13:39   ` Mark Brown
2022-02-18 12:37   ` Hans Verkuil
2022-03-02  7:30   ` Pavel Machek
2022-01-25  9:30 ` [PATCH 0/5] " Lee Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YfKe7wmORV/NB6K6@gmail.com \
    --to=marcus.folkesson@gmail.com \
    --cc=linux-iio@vger.kernel.og \
    --cc=linux-kernel@vger.kernel.org \
    --cc=u.kleine-koenig@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox