mtd: spi-nor: use is_power_of_2()
authorMichael Walle <michael@walle.cc>
Fri, 5 Mar 2021 23:45:52 +0000 (00:45 +0100)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Mon, 8 Mar 2021 06:17:39 +0000 (08:17 +0200)
commit04fc298c7d0877695847e8662d1b5b29a19c2723
treeb70a94043723d2fb2151037fdca69331122c34eb
parentff013330fbdb2782e9001787db6c0b6415cdad77
mtd: spi-nor: use is_power_of_2()

There is already a function to check if an integer is a power of 2. Use
it.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20210305234552.19204-1-michael@walle.cc
drivers/mtd/spi-nor/core.c