mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02:00
mtd: spinand: Expose spinand_op_is_odtr()
This helper is going to be needed in a vendor driver, so expose it. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
parent
4bde3ad9ee
commit
22fa40c7ec
|
|
@ -1400,7 +1400,7 @@ static void spinand_manufacturer_cleanup(struct spinand_device *spinand)
|
|||
return spinand->manufacturer->ops->cleanup(spinand);
|
||||
}
|
||||
|
||||
static bool spinand_op_is_odtr(const struct spi_mem_op *op)
|
||||
bool spinand_op_is_odtr(const struct spi_mem_op *op)
|
||||
{
|
||||
return op->cmd.dtr && op->cmd.buswidth == 8;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -862,6 +862,8 @@ static inline void spinand_set_of_node(struct spinand_device *spinand,
|
|||
nanddev_set_of_node(&spinand->base, np);
|
||||
}
|
||||
|
||||
bool spinand_op_is_odtr(const struct spi_mem_op *op);
|
||||
|
||||
int spinand_match_and_init(struct spinand_device *spinand,
|
||||
const struct spinand_info *table,
|
||||
unsigned int table_size,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user