]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: host1x: Use the bitmap API to allocate bitmaps
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 4 Jul 2022 20:31:51 +0000 (22:31 +0200)
committerThierry Reding <treding@nvidia.com>
Fri, 8 Jul 2022 15:38:34 +0000 (17:38 +0200)
commit6d0cbfed3ba3d8410c5766120f603975aaf82e18
treeda701c676f9f94b3897d63e8cf9195b6ab923951
parent2a8aeac3f73de691434b623031738af8b9e4fc26
gpu: host1x: Use the bitmap API to allocate bitmaps

Use bitmap_zalloc()/bitmap_free() instead of hand-writing them.

It is less verbose and it improves the semantic.

While at it, remove a useless bitmap_zero() call. The bitmap is already
zero'ed when allocated.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/channel.c