Skip to content

use process_directory() to read dir

Sergey Senozhatsky powertop 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 of 8 patches 1 replyIn review

7 of 8 patches are in this archive. The cover letter announces 8.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
2/8alsa: use process_directory()src/devices/alsa.cpp src/devices/alsa.h+19 -310 replies
3/8calibrate: use process_directory()src/calibrate/calibrate.cpp+48 -1030 replies
4/8network: use updated process_directory()src/devices/network.cpp+4 -40 replies
5/8rfkill: use process_directory()src/devices/rfkill.cpp+17 -290 replies
6/8usb: use process_directory()src/devices/usb.cpp+31 -480 replies
7/8tuning ethernet: use updated process_directory()src/tuning/ethernet.cpp+5 -50 replies
8/8tuningusb: use process_directory()src/tuning/tuningusb.cpp+14 -320 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [Powertop] [PATCH 0/8] use process_directory() to read dir

Hello,

This patch series removes some code duplication in trivial cases and replaces explicit opendir()/readdir() handling with existing common lib process_directory() helper.

 src/calibrate/calibrate.cpp | 151 ++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------------------------------------------------
 src/devices/alsa.cpp        |  46 +++++++++++++++++-----------------------------
 src/devices/alsa.h          |   4 ++--
 src/devices/network.cpp     |   8 ++++----
 src/devices/rfkill.cpp      |  46 +++++++++++++++++-----------------------------
 src/devices/usb.cpp         |  79 +++++++++++++++++++++++++++++++------------------------------------------------
 src/lib.cpp                 |   4 ----
 src/tuning/ethernet.cpp     |  10 +++++-----
 src/tuning/tuningusb.cpp    |  46 ++++++++++++++--------------------------------
 9 files changed, 138 insertions(+), 256 deletions(-)