mtd: rawnand: qcom: Use EOPNOTSUPP instead of ENOTSUPP
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Sat, 5 Aug 2023 17:41:41 +0000 (23:11 +0530)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 18 Aug 2023 14:34:27 +0000 (16:34 +0200)
commitab15aabac028afd4889745239a1860a76598e79f
tree48f02bd08b52470245dabfed927da25788d53bf6
parentb4bb4800313de0d8faa5615d4943615ff56c1cc2
mtd: rawnand: qcom: Use EOPNOTSUPP instead of ENOTSUPP

Checkpatch complains over the usage of ENOTSUPP for new patches as below:

WARNING: ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP

So let's fix the error code which is already present in qcom_check_op().

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230805174146.57006-6-manivannan.sadhasivam@linaro.org
drivers/mtd/nand/raw/qcom_nandc.c