firmware: arm_scmi: Use the bitmap API to allocate bitmaps
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 8 Jul 2022 19:30:01 +0000 (21:30 +0200)
committerSudeep Holla <sudeep.holla@arm.com>
Wed, 8 Mar 2023 15:24:15 +0000 (15:24 +0000)
commitd617808e3b8324eacebabefec49dc75536ee39cc
tree5c6db1aff0ddec891b6e7bc12401a7515a2a21a2
parent2ab4f4018cb6b8010ca5002c3bdc37783b5d28c2
firmware: arm_scmi: Use the bitmap API to allocate bitmaps

Use devm_bitmap_zalloc() instead of hand-writing them.

It is less verbose and it improves the semantic.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Tested-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/c073b1607ada34d5bde6ce1009179cf15bbf0da3.1657308593.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/driver.c