diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mtd/nand.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index a719686c9cce..c034dc4224cb 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h | |||
| @@ -832,4 +832,14 @@ static inline bool nand_is_slc(struct nand_chip *chip) | |||
| 832 | { | 832 | { |
| 833 | return chip->bits_per_cell == 1; | 833 | return chip->bits_per_cell == 1; |
| 834 | } | 834 | } |
| 835 | |||
| 836 | /** | ||
| 837 | * Check if the opcode's address should be sent only on the lower 8 bits | ||
| 838 | * @command: opcode to check | ||
| 839 | */ | ||
| 840 | static inline int nand_opcode_8bits(unsigned int command) | ||
| 841 | { | ||
| 842 | return command == NAND_CMD_READID; | ||
| 843 | } | ||
| 844 | |||
| 835 | #endif /* __LINUX_MTD_NAND_H */ | 845 | #endif /* __LINUX_MTD_NAND_H */ |
