Skip to content

RFC staging: media: atomisp: Refactor bit logic helpers in vmem.c

Adrian Barnaś linux-media linux-staging lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 RFC Latest2 patches 3 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2staging: media: atomisp: Change name to better follow its behaviordrivers/staging/media/atomisp/pci/hive_isp_css_common/host/vmem.c+8 -82 replies
2/2staging: media: atomisp: Simplify logic in vmem.cdrivers/staging/media/atomisp/pci/hive_isp_css_common/host/vmem.c+7 -20 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [RFC PATCH v2 0/2] staging: media: atomisp: Refactor bit logic helpers in vmem.c

Refactor proposition for bit operation in vmem.c.
* Previous name for function "inv_subword()" for me is not telling what function acctualy does - it clears bit specified by subword, so renamed to clear_subword()
* Added a helper to create a proper bitmask for a subword, without using GENMASK(end-1, start) which was claimed to be unsafe
* Simplified subword() and clear_subword() to be more readable.

Continuation of https://lore.kernel.org/linux-staging/[email protected]/

Adrian Barnaś (2):
staging: media: atomisp: Change name to better follow its behavior
staging: media: atomisp: Simplify logic in vmem.c

 .../pci/hive_isp_css_common/host/vmem.c       | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)
Signature · 1 line
2.51.0.355.g5224444f11-goog