[PATCH v3 0/5] staging: media: atomisp: cleanup pci/hmm/ code

From: Nikolay Kulikov

Date: Wed Aug 12 2026 - 16:57:14 EST


This series removes unused functions and replaces obscure
variable-checking macros with clear conditional statements.

Changes in v3:
- Split the last patch into two (inlining macros and removing
the file).
- Replace variable initialization with assignment, followed
immediately by a check.
Changes in v2:
- Squashed the function removals in pci/hmm/hmm.c and
pci/hmm/hmm_bo.c into a single commit.
- Add commits to cleanup macros from include/hmm/hmm_common.h,
as suggested by Andy Shevchenko.

Nikolay Kulikov (5):
staging: media: atomisp: remove unused functions from pci/hmm/
staging: media: atomisp: inline macros for checking the bo/bodev
pointer
staging: media: atomisp: inline the check_bo_status_*() macros
staging: media: atomisp: inline the var_equal_return*() macros
staging: media: atomisp: remove hmm/hmm_common.h file

.../staging/media/atomisp/include/hmm/hmm.h | 17 --
.../media/atomisp/include/hmm/hmm_bo.h | 46 ----
.../media/atomisp/include/hmm/hmm_common.h | 60 -----
drivers/staging/media/atomisp/pci/hmm/hmm.c | 41 ---
.../staging/media/atomisp/pci/hmm/hmm_bo.c | 246 ++++++++----------
5 files changed, 112 insertions(+), 298 deletions(-)
delete mode 100644 drivers/staging/media/atomisp/include/hmm/hmm_common.h

--
2.55.0