mtd: spi-nor: Fix S3AN addressing calculation
authorRicardo Ribalda <ricardo.ribalda@gmail.com>
Wed, 18 Jan 2017 16:40:16 +0000 (17:40 +0100)
committerCyrille Pitchen <cyrille.pitchen@atmel.com>
Fri, 10 Feb 2017 13:21:59 +0000 (14:21 +0100)
commit56c5c328962b26e6dc844b4e8e643f145974c04e
tree43d80286466abd44b1965514fd4d7b065fd3e838
parentf40a2725ea720a6270d3970cf11472da66924624
mtd: spi-nor: Fix S3AN addressing calculation

The page calculation under spi_nor_s3an_addr_convert() was wrong. On
Default Address Mode we need to perform a divide by page_size.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
drivers/mtd/spi-nor/spi-nor.c