public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] iio: magnetometer: ak8975: modernize and cleanup driver
@ 2026-04-21 10:07 Joshua Crofts
  2026-04-21 10:07 ` [PATCH v2 1/4] iio: magnetometer: ak8975: header cleanup Joshua Crofts
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Joshua Crofts @ 2026-04-21 10:07 UTC (permalink / raw)
  To: jic23; +Cc: dlechner, nuno.sa, andy, linux-iio, linux-kernel, Joshua Crofts

This series modernizes and cleans up the ak8975 driver, migrating to
more modern kernel APIs and cleaning up legacy code.

Changes include:
 - replacing usleep_range() with fsleep() for optimization
 - migrating to iopoll macros for better device polling
 - removing unused headers and adding new ones
 - checkpatch.pl fixes

v2:
 - PATCH 1: reverted alphabetical header ordering per logical change
   separation
 - PATCH 2: added newline between fsleep() and return
 - PATCH 3: fixed open parenthesis formatting
 - PATCH 4: fixed whitespace issues, added <linux/time.h> for
   USEC_PER_MSEC macro

Joshua Crofts (4):
  iio: magnetometer: ak8975: header cleanup
  iio: magnetometer: ak8975: replace usleep_range() with fsleep()
  iio: magnetometer: ak8975: change 'u8*' to 'u8 *' in cast
  iio: magnetometer: ak8975: modernize polling loops with iopoll()
    macros

 drivers/iio/magnetometer/ak8975.c | 70 ++++++++++++++++---------------
 1 file changed, 37 insertions(+), 33 deletions(-)


base-commit: c65f27cae0deda3316ed49899df4492a3896e38c
-- 
2.47.3


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

end of thread, other threads:[~2026-04-21 10:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-21 10:07 [PATCH v2 0/4] iio: magnetometer: ak8975: modernize and cleanup driver Joshua Crofts
2026-04-21 10:07 ` [PATCH v2 1/4] iio: magnetometer: ak8975: header cleanup Joshua Crofts
2026-04-21 10:35   ` Jonathan Cameron
2026-04-21 10:52     ` Joshua Crofts
2026-04-21 10:07 ` [PATCH v2 2/4] iio: magnetometer: ak8975: replace usleep_range() with fsleep() Joshua Crofts
2026-04-21 10:07 ` [PATCH v2 3/4] iio: magnetometer: ak8975: change 'u8*' to 'u8 *' in cast Joshua Crofts
2026-04-21 10:07 ` [PATCH v2 4/4] iio: magnetometer: ak8975: modernize polling loops with iopoll() macros Joshua Crofts
2026-04-21 10:38   ` Jonathan Cameron

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