mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 23:22:31 +02:00
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
This commit is contained in:
parent
b4bb480031
commit
ab15aabac0
|
|
@ -3040,7 +3040,7 @@ static int qcom_check_op(struct nand_chip *chip,
|
|||
instr->ctx.cmd.opcode != NAND_CMD_ERASE2 &&
|
||||
instr->ctx.cmd.opcode != NAND_CMD_STATUS &&
|
||||
instr->ctx.cmd.opcode != NAND_CMD_PAGEPROG)
|
||||
return -ENOTSUPP;
|
||||
return -EOPNOTSUPP;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user