]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9dd42c0a340e72701763e780b685ab6473d2ab99
tree4e39a29cbcd51202b0f4cd729f29dfbac4fee6fb
parenta0dcdc4ca64230a6d4a2738a96d502ae7293732c
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