Skip to content

staging: ad9832: driver cleanup

Tomas Borquez linux-iio linux-staging lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 18 repliesIn review
  2. v15 patches 12 repliesSuperseded

Changes in v2 from the cover letter

- Reordered patches: moved dev_err_probe cleanup before guard(mutex) conversion (Marcelo)
- Split channel conversion into two patches:
- dds.h removal
- channel interface conversion (ABI change) (Jonathan)
- Added devm_mutex_init() conversion as separate patch (Marcelo)
- Used MICRO macro for phase calculations instead of hardcoded values for better readability (Marcelo)
- Fixed FIELD_PREP usage in pinctrl_en for consistency (Marcelo)
- Renamed ext_info macro parameter from _channel to _select since it represents register selection not channel number (Marcelo)
- Ensured patches apply cleanly on top of IIO testing branch
- Made sysfs ABI documentation generic using capital letters for channel and symbol indices (Marcelo, Jonathan)
- Changed attribute naming to hierarchical structure (out_altcurrentY_frequency_symbolZ) (Marcelo)
- Made descriptions hardware-agnostic and removed chip-specific implementation details (Jonathan)
- Renamed documentation file to sysfs-bus-iio-frequency instead of chip-specific name (Jonathan)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6staging: iio: ad9832: cleanup dev_err_probe()drivers/staging/iio/frequency/ad9832.c+8 -72 replies
2/6staging: iio: ad9832: convert to guard(mutex)drivers/staging/iio/frequency/ad9832.c+17 -242 replies
3/6staging: iio: ad9832: convert to devm_mutex_init()drivers/staging/iio/frequency/ad9832.c+3 -11 reply
4/6staging: iio: ad9832: remove dds.h dependencydrivers/staging/iio/frequency/ad9832.c+15 -227 replies
5/6staging: iio: ad9832: convert to iio channels and ext_info attrsdrivers/staging/iio/frequency/ad9832.c+220 -584 replies
6/6staging: iio: ad9832: add sysfs documentationdrivers/staging/iio/Documentation/sysfs-bus-iio-frequency+40 -02 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchMarcelo Schmitt
1/6
2/6
3/6R-b
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/6] staging: ad9832: driver cleanup

This series cleans up the ad9832 driver with the goal of (eventually) graduating it from staging. The main change is converting custom sysfs attributes to IIO channel interface and adding sysfs documentation.

Changes since v1:
- Reordered patches: moved dev_err_probe cleanup before guard(mutex) conversion (Marcelo)
- Split channel conversion into two patches:
- dds.h removal
- channel interface conversion (ABI change) (Jonathan)
- Added devm_mutex_init() conversion as separate patch (Marcelo)
- Used MICRO macro for phase calculations instead of hardcoded values for better readability (Marcelo)
- Fixed FIELD_PREP usage in pinctrl_en for consistency (Marcelo)
- Renamed ext_info macro parameter from _channel to _select since it represents register selection not channel number (Marcelo)
- Ensured patches apply cleanly on top of IIO testing branch
- Made sysfs ABI documentation generic using capital letters for channel and symbol indices (Marcelo, Jonathan)
- Changed attribute naming to hierarchical structure (out_altcurrentY_frequency_symbolZ) (Marcelo)
- Made descriptions hardware-agnostic and removed chip-specific implementation details (Jonathan)
- Renamed documentation file to sysfs-bus-iio-frequency instead of chip-specific name (Jonathan)

Tomas Borquez (6):
staging: iio: ad9832: cleanup dev_err_probe()
staging: iio: ad9832: convert to guard(mutex)
staging: iio: ad9832: convert to devm_mutex_init()
staging: iio: ad9832: remove dds.h dependency
staging: iio: ad9832: convert to iio channels and ext_info attrs
staging: iio: ad9832: add sysfs documentation

 .../iio/Documentation/sysfs-bus-iio-frequency |  40 +++
 drivers/staging/iio/frequency/ad9832.c        | 327 +++++++++++++-----
 2 files changed, 279 insertions(+), 88 deletions(-)
 create mode 100644 drivers/staging/iio/Documentation/sysfs-bus-iio-frequency
Signature · 1 line
2.43.0