]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: maps: gpio-addr-flash: Replace array with an integer
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Thu, 4 Oct 2018 13:01:07 +0000 (15:01 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Mon, 8 Oct 2018 19:32:57 +0000 (21:32 +0200)
commit47a996268b20c5e3c110eeef43bc04d47d936899
treee919ae3ad07db4ca64498df0d6d3462be82d6715
parent8c157d6820cf723ca8bd78ab638dcea30ed767c0
mtd: maps: gpio-addr-flash: Replace array with an integer

By replacing the array with an integer we can avoid completely
the bit comparison loop if the value has not changed (by far
the most common case).

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/maps/gpio-addr-flash.c