]> www.infradead.org Git - users/jedix/linux-maple.git/commit
regmap: cache: Use BITS_TO_BYTES()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 21 Nov 2024 10:57:21 +0000 (12:57 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 2 Dec 2024 00:30:58 +0000 (00:30 +0000)
commit4a3aafe01f6c628932a402c21e58101173c8dab3
tree48b5739d6aed3cda3b13276f115df031ee259f4b
parent40384c840ea1944d7c5a392e8975ed088ecf0b37
regmap: cache: Use BITS_TO_BYTES()

BITS_TO_BYTES() is the existing macro which takes care about full
bytes that may fully hold the given amount of bits. Use it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20241121105838.4073659-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regcache.c