All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] mfd: Make .disable() callback and mfd_cell_disable() return void
@ 2023-01-13 18:24 Uwe Kleine-König
  2023-01-13 18:24 ` [PATCH 1/2] mfd: Make .disable() callback " Uwe Kleine-König
  2023-01-13 18:24 ` [PATCH 2/2] mfd: Make mfd_cell_disable() " Uwe Kleine-König
  0 siblings, 2 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2023-01-13 18:24 UTC (permalink / raw)
  To: Lee Jones, Pavel Machek; +Cc: linux-kernel, kernel, linux-leds

Hello,

this series eventually changes mfd_cell_disable() to return void. Before it
returned an int and always 0. The motivation is to not force drivers to do
error handling that is never hit. Here only a single driver did that:
leds-asic3. For that driver this is a nice improvement because a platform
driver's remove callback is not supposed to return an error code.

This serves as a preparation for the quest to make struct
platform_driver::remove return void, too.

This series is build-tested (using allmodconfig) on arm64, m68k, powerpc,
riscv, s390, sparc64 and x86_64.

I suggest to let this series go into mainline via the mfd tree. So an Ack by
Pavel for the led bits would be nice to let Lee pick it up in good conscience.

Best regards
Uwe

Uwe Kleine-König (2):
  mfd: Make .disable() callback return void
  mfd: Make mfd_cell_disable() return void

 drivers/leds/leds-asic3.c |  6 ++++--
 drivers/mfd/asic3.c       | 17 +++++++++--------
 drivers/mfd/htc-pasic3.c  |  3 +--
 drivers/mfd/mfd-core.c    | 10 ++++------
 drivers/mfd/t7l66xb.c     |  4 +---
 drivers/mfd/tc6387xb.c    |  4 +---
 drivers/mfd/tc6393xb.c    | 16 ++++++++++------
 include/linux/mfd/core.h  |  4 ++--
 8 files changed, 32 insertions(+), 32 deletions(-)

base-commit: 1b929c02afd37871d5afb9d498426f83432e71c2
-- 
2.39.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-26 15:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-13 18:24 [PATCH 0/2] mfd: Make .disable() callback and mfd_cell_disable() return void Uwe Kleine-König
2023-01-13 18:24 ` [PATCH 1/2] mfd: Make .disable() callback " Uwe Kleine-König
2023-01-26 13:34   ` Lee Jones
2023-01-26 15:27     ` Uwe Kleine-König
2023-01-13 18:24 ` [PATCH 2/2] mfd: Make mfd_cell_disable() " Uwe Kleine-König

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.