u-boot/drivers/mtd/spi
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
..
fsl_espi_spl.c common: Move hang() to the same header as panic() 2020-01-17 17:53:40 -05:00
Kconfig mtd: spi: SPI_FLASH_MTD depends on MTD 2019-12-04 17:10:51 -05:00
Makefile mtd: spi: Clean up usage of CONFIG_SPI_FLASH_MTD 2019-10-25 00:48:32 +05:30
sandbox.c mtd: spi: Switch to new SPI NOR framework 2019-02-07 15:33:21 +05:30
sf-uclass.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
sf_dataflash.c mtd: spi_dataflash: Use spi read then write 2019-09-16 08:09:22 +05:30
sf_internal.h mtd: spi-nor-core: Add octal mode support 2020-01-27 22:27:22 +05:30
sf_mtd.c mtd: sf: Make sf_mtd.c more robust 2018-12-06 00:45:36 +05:30
sf_probe.c mtd: spi: Export spi_flash_std_probe() 2019-12-15 11:44:24 +08:00
spi-nor-core.c spi: use is_power_of_2 instead of hweight32 in spi_nor_write() 2020-04-29 01:44:35 +05:30
spi-nor-ids.c mtd: spi: Add Macronix MX25U3235F device 2020-04-02 14:30:02 -07:00
spi-nor-tiny.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00