Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mtd: spinand: Use standard return values

Replace -ENOTSUPP with -EOPNOTSUPP which is as relevant in this case but
is standard.

Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>

+4 -4
+4 -4
drivers/mtd/nand/spi/core.c
··· 1417 1417 op = spinand_select_op_variant(spinand, 1418 1418 info->op_variants.read_cache); 1419 1419 if (!op) 1420 - return -ENOTSUPP; 1420 + return -EOPNOTSUPP; 1421 1421 1422 1422 spinand->op_templates.read_cache = op; 1423 1423 1424 1424 op = spinand_select_op_variant(spinand, 1425 1425 info->op_variants.write_cache); 1426 1426 if (!op) 1427 - return -ENOTSUPP; 1427 + return -EOPNOTSUPP; 1428 1428 1429 1429 spinand->op_templates.write_cache = op; 1430 1430 1431 1431 op = spinand_select_op_variant(spinand, 1432 1432 info->op_variants.update_cache); 1433 1433 if (!op) 1434 - return -ENOTSUPP; 1434 + return -EOPNOTSUPP; 1435 1435 1436 1436 spinand->op_templates.update_cache = op; 1437 1437 1438 1438 return 0; 1439 1439 } 1440 1440 1441 - return -ENOTSUPP; 1441 + return -EOPNOTSUPP; 1442 1442 } 1443 1443 1444 1444 static int spinand_detect(struct spinand_device *spinand)