mtd: spi-nor: use le32_to_cpu_array()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 1 Feb 2020 20:55:08 +0000 (23:55 +0300)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Sun, 16 Feb 2020 23:09:52 +0000 (01:09 +0200)
commit5b24efe7d55a4bea6992ae1ee00707d77ec22575
tree4e39a29cbcd51202b0f4cd729f29dfbac4fee6fb
parent11a48a5a18c63fd7621bb050228cebf13566e4d8
mtd: spi-nor: use le32_to_cpu_array()

The driver calls le32_to_cpu() to convert the little-endian tables
to  a CPU endianness, where le32_to_cpus() should have been called.
Was going to use that one... and then discovered a whole array
converter, le32_to_cpu_array()! :-)

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
drivers/mtd/spi-nor/spi-nor.c