Re: [PATCH] mtd: spi-nor: use is_power_of_2()

2021-03-08 Thread Pratyush Yadav
On 06/03/21 12:45AM, Michael Walle wrote: > There is already a function to check if an integer is a power of 2. Use > it. > > Signed-off-by: Michael Walle > --- > drivers/mtd/spi-nor/core.c | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/mtd/spi-nor/core.c b

Re: [PATCH] mtd: spi-nor: use is_power_of_2()

2021-03-07 Thread Tudor Ambarus
On Sat, 6 Mar 2021 00:45:52 +0100, Michael Walle wrote: > There is already a function to check if an integer is a power of 2. Use > it. Applied to spi-nor/next, thanks! [1/1] mtd: spi-nor: use is_power_of_2() https://git.kernel.org/mtd/c/04fc298c7d08 Best regards, -- Tudor Ambarus

[PATCH] mtd: spi-nor: use is_power_of_2()

2021-03-05 Thread Michael Walle
There is already a function to check if an integer is a power of 2. Use it. Signed-off-by: Michael Walle --- drivers/mtd/spi-nor/core.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index 0522304f52fa..4a315cb1c4db