u-boot-brain/drivers/mtd
Rasmus Villemoes 7ddea75654 spi: use is_power_of_2 instead of hweight32 in spi_nor_write()
hweight32 is a somewhat expensive way to check for power-of-2. Use the
is_power_of_2 helper, which does the standard and cheap idiom
foo&(foo-1)==0.

add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-96 (-96)
Function                                     old     new   delta
spi_nor_write                                388     292     -96

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Acked-by: Vignesh Raghavendra <vigneshr@ti.com>
Acked-by: Jagan Teki <jagan@amarulasolutions.com>
2020-04-29 01:44:35 +05:30
..
nand nand: brcmnand: return without disabling clock 2020-04-27 20:29:33 +02:00
onenand dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
spi spi: use is_power_of_2 instead of hweight32 in spi_nor_write() 2020-04-29 01:44:35 +05:30
ubi dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
ubispl crc32: Use the crc.h header for crc functions 2019-12-02 18:23:08 -05:00
altera_qspi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cfi_flash.c common: Move interrupt functions into a new header 2019-12-02 18:25:00 -05:00
cfi_mtd.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
hbmc-am654.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
jedec_flash.c env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
Kconfig mtd: rename CONFIG_MTD_DEVICE -> CONFIG_MTD 2019-12-03 23:04:10 -05:00
Makefile mtd: Makefile: deep cleanup 2019-12-04 17:10:51 -05:00
mtd_uboot.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
mtd-uclass.c mtd: uclass: add probe function 2018-10-02 22:12:31 +05:30
mtdconcat.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
mtdcore.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
mtdcore.h mtd: move definitions to enlarge their range 2018-09-20 20:10:49 +05:30
mtdpart.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
mw_eeprom.c common: Move old EEPROM functions into a new header 2019-12-02 18:25:25 -05:00
pic32_flash.c common: Move enable/disable_interrupts out of common.h 2019-12-02 18:25:01 -05:00
renesas_rpc_hf.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
st_smi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
stm32_flash.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
stm32_flash.h stm32: stm32f4: move flash driver to mtd driver location 2016-03-26 18:49:28 -04:00