From: Michael Walle <michael@walle.cc>
To: Tudor Ambarus <tudor.ambarus@microchip.com>,
Pratyush Yadav <pratyush@kernel.org>
Cc: Miquel Raynal <miquel.raynal@bootlin.com>,
Richard Weinberger <richard@nod.at>,
Vignesh Raghavendra <vigneshr@ti.com>,
linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org,
Michael Walle <michael@walle.cc>,
Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Subject: [PATCH v2 4/7] mtd: spi-nor: move function declaration out of sfdp.h
Date: Thu, 11 Aug 2022 00:06:51 +0200 [thread overview]
Message-ID: <20220810220654.1297699-5-michael@walle.cc> (raw)
In-Reply-To: <20220810220654.1297699-1-michael@walle.cc>
sfdp.h should only contain constants related to the JEDEC SFDP
specification(s).
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
---
drivers/mtd/spi-nor/core.h | 2 ++
drivers/mtd/spi-nor/sfdp.h | 2 --
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/spi-nor/core.h b/drivers/mtd/spi-nor/core.h
index 85b0cf254e97..68aaccaa12d8 100644
--- a/drivers/mtd/spi-nor/core.h
+++ b/drivers/mtd/spi-nor/core.h
@@ -701,6 +701,8 @@ int spi_nor_controller_ops_read_reg(struct spi_nor *nor, u8 opcode,
int spi_nor_controller_ops_write_reg(struct spi_nor *nor, u8 opcode,
const u8 *buf, size_t len);
+int spi_nor_parse_sfdp(struct spi_nor *nor);
+
static inline struct spi_nor *mtd_to_spi_nor(struct mtd_info *mtd)
{
return container_of(mtd, struct spi_nor, mtd);
diff --git a/drivers/mtd/spi-nor/sfdp.h b/drivers/mtd/spi-nor/sfdp.h
index bbf80d2990ab..c1969f0a2f46 100644
--- a/drivers/mtd/spi-nor/sfdp.h
+++ b/drivers/mtd/spi-nor/sfdp.h
@@ -107,6 +107,4 @@ struct sfdp_parameter_header {
u8 id_msb;
};
-int spi_nor_parse_sfdp(struct spi_nor *nor);
-
#endif /* __LINUX_MTD_SFDP_H */
--
2.30.2
next prev parent reply other threads:[~2022-08-10 22:07 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-10 22:06 [PATCH v2 0/7] mtd: spi-nor: generic flash driver Michael Walle
2022-08-10 22:06 ` [PATCH v2 1/7] mtd: spi-nor: hide jedec_id sysfs attribute if not present Michael Walle
2022-08-10 22:06 ` [PATCH v2 2/7] mtd: spi-nor: sysfs: hide manufacturer if it is not set Michael Walle
2022-08-10 22:06 ` [PATCH v2 3/7] mtd: spi-nor: remember full JEDEC flash ID Michael Walle
2022-08-10 22:06 ` Michael Walle [this message]
2022-08-10 22:06 ` [PATCH v2 5/7] mtd: spi-nor: fix select_uniform_erase to skip 0 erase size Michael Walle
2022-08-10 22:06 ` [PATCH v2 6/7] mtd: spi-nor: add generic flash driver Michael Walle
2022-11-01 8:46 ` Tudor.Ambarus
2022-11-07 14:42 ` Tudor.Ambarus
2022-11-07 18:22 ` Michael Walle
2022-11-21 13:35 ` Tudor.Ambarus
2022-08-10 22:06 ` [PATCH v2 7/7] mtd: spi-nor: sysfs: print JEDEC ID for " Michael Walle
2022-11-21 13:41 ` [PATCH v2 0/7] mtd: spi-nor: " Tudor Ambarus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220810220654.1297699-5-michael@walle.cc \
--to=michael@walle.cc \
--cc=Takahiro.Kuwano@infineon.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=miquel.raynal@bootlin.com \
--cc=pratyush@kernel.org \
--cc=richard@nod.at \
--cc=tudor.ambarus@microchip.com \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).