Skip to content

staging: greybus: cleanup, API migration, and refactors

Ganesh Kumar Pittala linux-staging lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest4 patches 3 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4staging: greybus: replace deprecated strncpy with strscpy in firmware.cdrivers/staging/greybus/Documentation/firmware/firmware.c+3 -31 reply
2/4staging: greybus: replace sprintf with sysfs_emit in sysfs show functionsdrivers/staging/greybus/arche-apb-ctrl.c drivers/staging/greybus/arche-platform.c drivers/staging/greybus/audio_manager_module.c +3 more+32 -260 replies
3/4staging: greybus: refactor gb_loopback_fn into smaller helper functionsdrivers/staging/greybus/loopback.c+82 -701 reply
4/4staging: greybus: split gb_audio_gb_get_topology into helper functionsdrivers/staging/greybus/audio_gb.c+28 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] staging: greybus: cleanup, API migration, and refactors

This patch series splits and improves the previously submitted single patch by breaking it into four independent, logical changes following kernel submission etiquette.

All changes are isolated, reviewed, and tested.

Patches included:
1. Replace deprecated strncpy() with strscpy() in firmware.c
2. Replace sprintf() with sysfs_emit() in sysfs show functions
3. Refactor gb_loopback_fn() into smaller helpers
4. Fulfill TODO by splitting get_topology() logic in audio_gb.c

v1 feedback from maintainers highlighted the need to split changes and avoid unrelated whitespace or formatting edits. These recommendations have been carefully addressed in this version.

Ganesh Kumar Pittala (4):
staging: greybus: replace deprecated strncpy with strscpy in
firmware.c
staging: greybus: replace sprintf with sysfs_emit in sysfs show
functions
staging: greybus: refactor gb_loopback_fn into smaller helper
functions
staging: greybus: split gb_audio_gb_get_topology into helper functions

 .../greybus/Documentation/firmware/firmware.c |   6 +-
 drivers/staging/greybus/arche-apb-ctrl.c      |  11 +-
 drivers/staging/greybus/arche-platform.c      |  11 +-
 drivers/staging/greybus/audio_gb.c            |  36 +++-
 .../staging/greybus/audio_manager_module.c    |  13 +-
 drivers/staging/greybus/gbphy.c               |   3 +-
 drivers/staging/greybus/light.c               |   5 +-
 drivers/staging/greybus/loopback.c            | 167 ++++++++++--------
 8 files changed, 145 insertions(+), 107 deletions(-)
Signature · 1 line
2.43.0