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)
commit0304f8eaa3aebc0480787139a26c7a19ac9936bd
treee919ae3ad07db4ca64498df0d6d3462be82d6715
parent460cdeca546fc75f2450914c96e701f990396285
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