acrn-kernel/drivers/mtd/chips
Christophe JAILLET dd8a2e884a mtd: gen_probe: Use bitmap_zalloc() when applicable
'chip_map' 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>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/a6fe58dffe553a3e79303777d3ba9c60d7613c5b.1637510255.git.christophe.jaillet@wanadoo.fr
2021-12-09 17:52:29 +01:00
..
Kconfig mtd: fixup CFI on ixp4xx 2021-10-15 12:27:10 +02:00
Makefile
cfi_cmdset_0001.c mtd: core: Constify buf in mtd_write_user_prot_reg() 2021-04-16 20:30:54 +02:00
cfi_cmdset_0002.c mtd: cfi_cmdset_0002: fix crash when erasing/writing AMD cards 2021-07-16 00:49:22 +02:00
cfi_cmdset_0020.c mtd: cfi: Fix fall-through warnings for Clang 2021-03-11 12:17:39 +01:00
cfi_probe.c mtd: cfi: Add early fixup for S70GL02GS 2018-05-04 09:52:38 +02:00
cfi_util.c mtd: cfi_util: Fix unreachable code issue 2021-07-12 11:15:28 -05:00
chipreg.c mtd: Convert list_for_each to entry variant 2021-06-11 21:05:06 +02:00
fwh_lock.h
gen_probe.c mtd: gen_probe: Use bitmap_zalloc() when applicable 2021-12-09 17:52:29 +01:00
jedec_probe.c MTD changes: 2018-04-06 12:15:41 -07:00
map_absent.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
map_ram.c mtd: Stop updating erase_info->state and calling mtd_erase_callback() 2018-03-21 09:50:56 +01:00
map_rom.c mtd: remove the get_unmapped_area method 2017-11-13 21:39:18 +01:00