]> www.infradead.org Git - users/jedix/linux-maple.git/commit
regmap: Use BITS_TO_BYTES()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 21 Nov 2024 10:57:22 +0000 (12:57 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 2 Dec 2024 00:30:59 +0000 (00:30 +0000)
commita4a7d86bc1a59839ad0dffbefa473135b342dd0b
treefa42630ba3db99d525be825563ea01c036ef9d3a
parent4a3aafe01f6c628932a402c21e58101173c8dab3
regmap: 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-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c