devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Add LTC2495 support
@ 2025-08-13 16:54 Yusuf Alper Bilgin
  2025-08-13 16:54 ` [PATCH v2 1/4] dt-bindings: iio: adc: ltc2497: add lltc,ltc2495 bindings Yusuf Alper Bilgin
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Yusuf Alper Bilgin @ 2025-08-13 16:54 UTC (permalink / raw)
  To: Lars-Peter Clausen, Michael Hennerich, Jonathan Cameron,
	David Lechner, Nuno Sá, Andy Shevchenko, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Liam Beguin
  Cc: Michael Hennerich, linux-iio, devicetree, linux-kernel,
	Yusuf Alper Bilgin

Hi All,

This is the v2 of the patch series to add support for the LTC2495 ADC to
the ltc2497 driver and to enable the internal temperature channel for
the LTC2495 and LTC2499.

Many thanks to Andy Shevchenko and Krzysztof Kozlowski for their
detailed and helpful reviews on v1. I believe I've addressed all
feedbacks in this version.

Best Regards,

Alper

Signed-off-by: Yusuf Alper Bilgin <y.alperbilgin@gmail.com>
---
Changes in v2:
  - Rewrote all commit messages to use the imperative mood.
  - Added a justification for the new compatible string to the device
    tree binding commit message.
  - Removed all unrelated whitespace and formatting changes.
  - Removed redundant explicit `false` initializers from structs.
  - Replaced the magic number for Kelvin conversion with a define.
  - Improved comments for defines and temperature scaling constants.
  - Renamed confusing macros and struct fields to be more descriptive.
  - Replaced dynamic channel allocation with a static array approach
    using a shared macro to improve readability.
  - Optimized data structure layouts based on pahole output to remove
    memory holes.
  - Link to v1: https://lore.kernel.org/r/20250812-ltc2495-v1-0-7bf4c6feec2e@gmail.com
---
Implementation Notes
 - checkpatch warning: The new static array approach uses a shared macro
   for the common channels (`LTC2497_CHANNELS`), which triggers a
   checkpatch.pl warning: "Macros with complex values should be enclosed
   in parentheses". However, this will cause a compilitaion error, as an
   initializer list cannot be parenthesized.
 - uV to mV conversion: I could not find a standard macro, so a manual
   division is used for now. This could be a point of future
   improvement.

---
Yusuf Alper Bilgin (4):
      dt-bindings: iio: adc: ltc2497: add lltc,ltc2495 bindings
      iio: adc: ltc2497: add support for LTC2495
      iio: adc: ltc2497: add temperature sensor support
      iio: adc: ltc2497: reorder ltc2497core_driverdata members to remove hole

 .../devicetree/bindings/iio/adc/lltc,ltc2497.yaml  |   3 +
 drivers/iio/adc/ltc2497-core.c                     | 140 +++++++++++++++------
 drivers/iio/adc/ltc2497.c                          |  35 +++++-
 drivers/iio/adc/ltc2497.h                          |  23 +++-
 4 files changed, 158 insertions(+), 43 deletions(-)
---
base-commit: acbbb5a20971089064ca6b271dd251e629be8d4d
change-id: 20250811-ltc2495-572817c13fd3

Best regards,
-- 
Yusuf Alper Bilgin <y.alperbilgin@gmail.com>


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

end of thread, other threads:[~2025-08-13 17:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-13 16:54 [PATCH v2 0/4] Add LTC2495 support Yusuf Alper Bilgin
2025-08-13 16:54 ` [PATCH v2 1/4] dt-bindings: iio: adc: ltc2497: add lltc,ltc2495 bindings Yusuf Alper Bilgin
2025-08-13 16:54 ` [PATCH v2 2/4] iio: adc: ltc2497: add support for LTC2495 Yusuf Alper Bilgin
2025-08-13 16:54 ` [PATCH v2 3/4] iio: adc: ltc2497: add temperature sensor support Yusuf Alper Bilgin
2025-08-13 17:14   ` Andy Shevchenko
2025-08-13 16:54 ` [PATCH v2 4/4] iio: adc: ltc2497: reorder ltc2497core_driverdata members to remove hole Yusuf Alper Bilgin
2025-08-13 17:16   ` Andy Shevchenko
2025-08-13 17:17 ` [PATCH v2 0/4] Add LTC2495 support Andy Shevchenko

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).