[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250903092754.2751556-1-abarnas@google.com>
Date: Wed, 3 Sep 2025 09:27:52 +0000
From: "Adrian Barnaś" <abarnas@...gle.com>
To: Hans de Goede <hansg@...nel.org>, Mauro Carvalho Chehab <mchehab@...nel.org>,
Sakari Ailus <sakari.ailus@...ux.intel.com>, Andy Shevchenko <andy@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>, Dan Carpenter <dan.carpenter@...aro.org>,
linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-staging@...ts.linux.dev
Cc: "Adrian Barnaś" <abarnas@...gle.com>
Subject: [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/20250902073841.2338568-1-abarnas@google.com/
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(-)
--
2.51.0.355.g5224444f11-goog
Powered by blists - more mailing lists