diff mbox series

[v1] mtd: spi-nor: core: fix/remove references to spi-nor.c

Message ID 20210126092516.1431913-1-f.suligoi@asem.it
State Accepted
Delegated to: Ambarus Tudor
Headers show
Series [v1] mtd: spi-nor: core: fix/remove references to spi-nor.c | expand

Commit Message

Flavio Suligoi Jan. 26, 2021, 9:25 a.m. UTC
The old file:

drivers/mtd/spi-nor/spi-nor.c

is not more present and now some of its code is
contained in:

drivers/mtd/spi-nor/core.c

This patch fix/remove the references to the old
spi-nor.c file.

Signed-off-by: Flavio Suligoi <f.suligoi@asem.it>
---
 Documentation/driver-api/mtd/spi-nor.rst | 2 +-
 drivers/mtd/spi-nor/core.c               | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

Comments

J. Neuschäfer Jan. 30, 2021, 6:49 p.m. UTC | #1
On Tue, Jan 26, 2021 at 10:25:16AM +0100, Flavio Suligoi wrote:
> The old file:
> 
> drivers/mtd/spi-nor/spi-nor.c
> 
> is not more present and now some of its code is
> contained in:
> 
> drivers/mtd/spi-nor/core.c
> 
> This patch fix/remove the references to the old
> spi-nor.c file.
> 
> Signed-off-by: Flavio Suligoi <f.suligoi@asem.it>
> ---

Reviewed-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>

Thanks.


>  Documentation/driver-api/mtd/spi-nor.rst | 2 +-
>  drivers/mtd/spi-nor/core.c               | 4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/Documentation/driver-api/mtd/spi-nor.rst b/Documentation/driver-api/mtd/spi-nor.rst
> index 4a3adca417fd..bf2db371d3fb 100644
> --- a/Documentation/driver-api/mtd/spi-nor.rst
> +++ b/Documentation/driver-api/mtd/spi-nor.rst
> @@ -61,7 +61,7 @@ Part III - How can drivers use the framework?
>  
>  The main API is spi_nor_scan(). Before you call the hook, a driver should
>  initialize the necessary fields for spi_nor{}. Please see
> -drivers/mtd/spi-nor/spi-nor.c for detail. Please also refer to spi-fsl-qspi.c
> +drivers/mtd/spi-nor/core.c for detail. Please also refer to spi-fsl-qspi.c
>  when you want to write a new driver for a SPI NOR controller.
>  Another API is spi_nor_restore(), this is used to restore the status of SPI
>  flash chip such as addressing mode. Call it whenever detach the driver from
> diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c
> index 20df44b753da..6ae7d4c2d2b6 100644
> --- a/drivers/mtd/spi-nor/core.c
> +++ b/drivers/mtd/spi-nor/core.c
> @@ -3701,8 +3701,8 @@ static void spi_nor_shutdown(struct spi_mem *spimem)
>   * encourage new users to add support to the spi-nor library, and simply bind
>   * against a generic string here (e.g., "jedec,spi-nor").
>   *
> - * Many flash names are kept here in this list (as well as in spi-nor.c) to
> - * keep them available as module aliases for existing platforms.
> + * Many flash names are kept here in this list to keep them available
> + * as module aliases for existing platforms.
>   */
>  static const struct spi_device_id spi_nor_dev_ids[] = {
>  	/*
> -- 
> 2.25.1
>
Tudor Ambarus Dec. 23, 2021, 8:12 a.m. UTC | #2
On Tue, 26 Jan 2021 10:25:16 +0100, Flavio Suligoi wrote:
> The old file:
> 
> drivers/mtd/spi-nor/spi-nor.c
> 
> is not more present and now some of its code is
> contained in:
> 
> [...]

Applied to spi-nor/next, thanks!

[1/1] mtd: spi-nor: core: fix/remove references to spi-nor.c
      https://git.kernel.org/mtd/c/e7ad9f59f746

Best regards,
diff mbox series

Patch

diff --git a/Documentation/driver-api/mtd/spi-nor.rst b/Documentation/driver-api/mtd/spi-nor.rst
index 4a3adca417fd..bf2db371d3fb 100644
--- a/Documentation/driver-api/mtd/spi-nor.rst
+++ b/Documentation/driver-api/mtd/spi-nor.rst
@@ -61,7 +61,7 @@  Part III - How can drivers use the framework?
 
 The main API is spi_nor_scan(). Before you call the hook, a driver should
 initialize the necessary fields for spi_nor{}. Please see
-drivers/mtd/spi-nor/spi-nor.c for detail. Please also refer to spi-fsl-qspi.c
+drivers/mtd/spi-nor/core.c for detail. Please also refer to spi-fsl-qspi.c
 when you want to write a new driver for a SPI NOR controller.
 Another API is spi_nor_restore(), this is used to restore the status of SPI
 flash chip such as addressing mode. Call it whenever detach the driver from
diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c
index 20df44b753da..6ae7d4c2d2b6 100644
--- a/drivers/mtd/spi-nor/core.c
+++ b/drivers/mtd/spi-nor/core.c
@@ -3701,8 +3701,8 @@  static void spi_nor_shutdown(struct spi_mem *spimem)
  * encourage new users to add support to the spi-nor library, and simply bind
  * against a generic string here (e.g., "jedec,spi-nor").
  *
- * Many flash names are kept here in this list (as well as in spi-nor.c) to
- * keep them available as module aliases for existing platforms.
+ * Many flash names are kept here in this list to keep them available
+ * as module aliases for existing platforms.
  */
 static const struct spi_device_id spi_nor_dev_ids[] = {
 	/*