mtd: spi-nor: core: use EOPNOTSUPP instead of ENOTSUPP
authorPratyush Yadav <p.yadav@ti.com>
Mon, 5 Oct 2020 15:31:24 +0000 (21:01 +0530)
committerVignesh Raghavendra <vigneshr@ti.com>
Mon, 9 Nov 2020 06:26:16 +0000 (11:56 +0530)
commit39bdfb789bac58a323b1dac56d0f55b65ed894ee
tree465d04f7da412cf0eca63521a9c8cebd1a2ebcd9
parentf8394f232b1eab649ce2df5c5f15b0e528c92091
mtd: spi-nor: core: use EOPNOTSUPP instead of ENOTSUPP

ENOTSUPP is not a SUSV4 error code. Using EOPNOTSUPP is preferred
in its stead.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20201005153138.6437-2-p.yadav@ti.com
drivers/mtd/spi-nor/core.c