mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/4] regmap: a small set of cleanups
@ 2026-11-10  9:36 Andy Shevchenko
  2026-11-10  9:36 ` [PATCH v1 1/4] regmap: Switch to use kmemdup_array() Andy Shevchenko
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Andy Shevchenko @ 2026-11-10  9:36 UTC (permalink / raw)
  To: Mark Brown, linux-kernel, driver-core
  Cc: Greg Kroah-Hartman, Rafael J. Wysocki, Danilo Krummrich,
	Johan Hovold, Andy Shevchenko

This is a mini-series of a small set of ad-hoc cleanups.
Read individual patches to get the idea.

Andy Shevchenko (4):
  regmap: Switch to use kmemdup_array()
  regmap: Drop never used devm_regmap_*_free() APIs
  regmap: Defer assignments to the later in some cases
  regmap: Drop duplicate ret assignment

 drivers/base/regmap/regmap.c | 62 +++++++++---------------------------
 include/linux/regmap.h       |  3 --
 2 files changed, 15 insertions(+), 50 deletions(-)

-- 
2.50.1


^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH v1 0/4] regmap: Switch to use kmemdup_array()
@ 2024-06-06 16:46 Andy Shevchenko
  2024-06-06 16:46 ` [PATCH v1 1/4] " Andy Shevchenko
  0 siblings, 1 reply; 9+ messages in thread
From: Andy Shevchenko @ 2024-06-06 16:46 UTC (permalink / raw)
  To: Mark Brown, Andy Shevchenko, linux-kernel
  Cc: Greg Kroah-Hartman, Rafael J. Wysocki

Replace open coded kmemdup_array(), which does an additional
overflow check.

While at it, fix one minor issue in regcache.c.

Andy Shevchenko (4):
  regmap: Switch to use kmemdup_array()
  regmap: cache: Use correct type of the rb_for_each() parameter
  regmap: cache: Switch to use kmemdup_array()
  regmap: maple: Switch to use kmemdup_array()

 drivers/base/regmap/regcache-maple.c | 13 ++++++-------
 drivers/base/regmap/regcache.c       |  6 +++---
 drivers/base/regmap/regmap.c         |  2 +-
 3 files changed, 10 insertions(+), 11 deletions(-)

-- 
2.43.0.rc1.1336.g36b5255a03ac


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

end of thread, other threads:[~2026-11-10 10:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-10  9:36 [PATCH v1 0/4] regmap: a small set of cleanups Andy Shevchenko
2026-11-10  9:36 ` [PATCH v1 1/4] regmap: Switch to use kmemdup_array() Andy Shevchenko
2026-11-10  9:37 ` [PATCH v1 2/4] regmap: Drop never used devm_regmap_*_free() APIs Andy Shevchenko
2026-11-10 10:19   ` Peng Fan
2026-11-10  9:37 ` [PATCH v1 3/4] regmap: Defer assignments to the later in some cases Andy Shevchenko
2026-11-10 10:20   ` Peng Fan
2026-11-10  9:37 ` [PATCH v1 4/4] regmap: Drop duplicate ret assignment Andy Shevchenko
2026-11-10 10:22   ` Peng Fan
  -- strict thread matches above, loose matches on Subject: below --
2024-06-06 16:46 [PATCH v1 0/4] regmap: Switch to use kmemdup_array() Andy Shevchenko
2024-06-06 16:46 ` [PATCH v1 1/4] " Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®