linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] power: supply: ab8500: Improve code related to iio_read_channel_processed() and fix a bug
@ 2024-06-22  7:04 Christophe JAILLET
  2024-06-22  7:04 ` [PATCH 1/3] power: supply: ab8500: Fix error handling when calling iio_read_channel_processed() Christophe JAILLET
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Christophe JAILLET @ 2024-06-22  7:04 UTC (permalink / raw)
  To: linus.walleij, sre, jic23
  Cc: linux-pm, linux-kernel, kernel-janitors, Christophe JAILLET

This series is inspired by a patch submitted at [1].

While looking if the same pattern was relevant elsewhere, I ended in
ab8500_charger.c.

Patch 1 fixes what looks to me as a regression introduced by
97ab78bac5d0.

Patch 2 is the initial goal of this series. That is to change some
iio_read_channel_processed() + multiplication by a single, cleaner,
iio_read_channel_processed_scale().

Patch 3 is a cosmetic change spotted while at it.


Honestly, I don't have a strong opinion if patch 2 helps in any way
(explanation or confirmation would be appreciated for my own
knowledge), but at least patch 1 deserves a look and seems value to me.

CJ

[1]: https://lore.kernel.org/all/20240620212005.821805-1-sean.anderson@linux.dev/

Christophe JAILLET (3):
  power: supply: ab8500: Fix error handling when calling
    iio_read_channel_processed()
  power: supply: ab8500: Use iio_read_channel_processed_scale()
  power: supply: ab8500: Clean some error messages

 drivers/power/supply/ab8500_charger.c | 52 ++++++++++++++++-----------
 1 file changed, 32 insertions(+), 20 deletions(-)

-- 
2.45.2


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

end of thread, other threads:[~2024-06-26 13:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-22  7:04 [PATCH 0/3] power: supply: ab8500: Improve code related to iio_read_channel_processed() and fix a bug Christophe JAILLET
2024-06-22  7:04 ` [PATCH 1/3] power: supply: ab8500: Fix error handling when calling iio_read_channel_processed() Christophe JAILLET
2024-06-23 17:16   ` Jonathan Cameron
2024-06-26 10:38   ` Linus Walleij
2024-06-22  7:04 ` [PATCH 2/3] power: supply: ab8500: Use iio_read_channel_processed_scale() Christophe JAILLET
2024-06-23 17:18   ` Jonathan Cameron
2024-06-26 10:39   ` Linus Walleij
2024-06-22  7:04 ` [PATCH 3/3] power: supply: ab8500: Clean some error messages Christophe JAILLET
2024-06-23 17:19   ` Jonathan Cameron
2024-06-26 10:39   ` Linus Walleij
2024-06-26 13:06 ` [PATCH 0/3] power: supply: ab8500: Improve code related to iio_read_channel_processed() and fix a bug Sebastian Reichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).