@@ -2281,7 +2281,7 @@ static int spi_nor_hwcaps_pp2cmd(u32 hwcaps)
2281
2281
*@nor: pointer to a 'struct spi_nor'
2282
2282
*@op: pointer to op template to be checked
2283
2283
*
2284
- * Returns 0 if operation is supported, -ENOTSUPP otherwise.
2284
+ * Returns 0 if operation is supported, -EOPNOTSUPP otherwise.
2285
2285
*/
2286
2286
static int spi_nor_spimem_check_op (struct spi_nor * nor ,
2287
2287
struct spi_mem_op * op )
@@ -2295,12 +2295,12 @@ static int spi_nor_spimem_check_op(struct spi_nor *nor,
2295
2295
op -> addr .nbytes = 4 ;
2296
2296
if (!spi_mem_supports_op (nor -> spimem , op )) {
2297
2297
if (nor -> mtd .size > SZ_16M )
2298
- return - ENOTSUPP ;
2298
+ return - EOPNOTSUPP ;
2299
2299
2300
2300
/* If flash size <= 16MB, 3 address bytes are sufficient */
2301
2301
op -> addr .nbytes = 3 ;
2302
2302
if (!spi_mem_supports_op (nor -> spimem , op ))
2303
- return - ENOTSUPP ;
2303
+ return - EOPNOTSUPP ;
2304
2304
}
2305
2305
2306
2306
return 0 ;
@@ -2312,7 +2312,7 @@ static int spi_nor_spimem_check_op(struct spi_nor *nor,
2312
2312
*@nor: pointer to a 'struct spi_nor'
2313
2313
*@read: pointer to op template to be checked
2314
2314
*
2315
- * Returns 0 if operation is supported, -ENOTSUPP otherwise.
2315
+ * Returns 0 if operation is supported, -EOPNOTSUPP otherwise.
2316
2316
*/
2317
2317
static int spi_nor_spimem_check_readop (struct spi_nor * nor ,
2318
2318
const struct spi_nor_read_command * read )
@@ -2338,7 +2338,7 @@ static int spi_nor_spimem_check_readop(struct spi_nor *nor,
2338
2338
*@nor: pointer to a 'struct spi_nor'
2339
2339
*@pp: pointer to op template to be checked
2340
2340
*
2341
- * Returns 0 if operation is supported, -ENOTSUPP otherwise.
2341
+ * Returns 0 if operation is supported, -EOPNOTSUPP otherwise.
2342
2342
*/
2343
2343
static int spi_nor_spimem_check_pp (struct spi_nor * nor ,
2344
2344
const struct spi_nor_pp_command * pp )
0 commit comments