diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-11-23 22:26:18 +0100 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-12-17 21:39:28 +0530 |
commit | d5aeba456e666c6f2c01e8b4e5bba2affabcdd09 (patch) | |
tree | 65066fdccb4b21d2f13db6754c2b358c67d154c0 /drivers/mfd/wm831x-irq.c | |
parent | de8f2c05754a7df12634c73640a162a610795a80 (diff) |
dmaengine: sh: Use bitmap_zalloc() when applicable
'shdma_slave_used' is a bitmap. So use 'bitmap_zalloc()' to simplify code,
improve the semantic and avoid some open-coded arithmetic in allocator
arguments.
Also change the corresponding 'kfree()' into 'bitmap_free()' to keep
consistency.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/3efaf2784424ae3d7411dc47f8b6b03e7bb8c059.1637702701.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/mfd/wm831x-irq.c')
0 files changed, 0 insertions, 0 deletions