mtd: spi-nor: move function declaration out of sfdp.h
sfdp.h should only contain constants related to the JEDEC SFDP specification(s). Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Reviewed-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com> Link: https://lore.kernel.org/r/20220810220654.1297699-5-michael@walle.cc
This commit is contained in:
parent
28ef767041
commit
fa06bb26a4
|
@ -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,
|
int spi_nor_controller_ops_write_reg(struct spi_nor *nor, u8 opcode,
|
||||||
const u8 *buf, size_t len);
|
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)
|
static inline struct spi_nor *mtd_to_spi_nor(struct mtd_info *mtd)
|
||||||
{
|
{
|
||||||
return container_of(mtd, struct spi_nor, mtd);
|
return container_of(mtd, struct spi_nor, mtd);
|
||||||
|
|
|
@ -107,6 +107,4 @@ struct sfdp_parameter_header {
|
||||||
u8 id_msb;
|
u8 id_msb;
|
||||||
};
|
};
|
||||||
|
|
||||||
int spi_nor_parse_sfdp(struct spi_nor *nor);
|
|
||||||
|
|
||||||
#endif /* __LINUX_MTD_SFDP_H */
|
#endif /* __LINUX_MTD_SFDP_H */
|
||||||
|
|
Loading…
Reference in New Issue