Commit 79da170
committed
mtd: spi-nand: Isolate the MTD read logic in a helper
There is currently only a single path for performing page reads as
requested by the MTD layer. Soon there will be two:
- a "regular" page read
- a continuous page read
Let's extract the page read logic in a dedicated helper, so the
introduction of continuous page reads will be as easy as checking whether
continuous reads shall/can be used and calling one helper or the other.
There is not behavioral change intended.
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/linux-mtd/[email protected]1 parent 8adf1ac commit 79da170
1 file changed
+26
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
634 | | - | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
635 | 636 | | |
636 | 637 | | |
637 | 638 | | |
638 | | - | |
639 | | - | |
640 | 639 | | |
641 | 640 | | |
642 | 641 | | |
643 | | - | |
| 642 | + | |
644 | 643 | | |
645 | | - | |
| 644 | + | |
646 | 645 | | |
647 | 646 | | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | 647 | | |
653 | 648 | | |
654 | 649 | | |
| |||
664 | 659 | | |
665 | 660 | | |
666 | 661 | | |
667 | | - | |
| 662 | + | |
668 | 663 | | |
669 | 664 | | |
670 | 665 | | |
671 | 666 | | |
672 | 667 | | |
673 | 668 | | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
674 | 689 | | |
675 | 690 | | |
676 | 691 | | |
| |||
680 | 695 | | |
681 | 696 | | |
682 | 697 | | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | 698 | | |
687 | 699 | | |
688 | 700 | | |
| |||
0 commit comments