Commit 7a06ef7
nvmem: core: fix bit offsets of more than one byte
If the NVMEM specifies a stride to access data, reading particular cell
might require bit offset that is bigger than one byte. Rework NVMEM core
code to support bit offsets of more than 8 bits.
Signed-off-by: Dmitry Baryshkov <[email protected]>
Signed-off-by: Srinivas Kandagatla <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent eed6d95 commit 7a06ef7
1 file changed
+17
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
837 | 837 | | |
838 | 838 | | |
839 | 839 | | |
840 | | - | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
841 | 843 | | |
842 | 844 | | |
843 | 845 | | |
| |||
1630 | 1632 | | |
1631 | 1633 | | |
1632 | 1634 | | |
1633 | | - | |
| 1635 | + | |
| 1636 | + | |
1634 | 1637 | | |
1635 | 1638 | | |
1636 | | - | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
1637 | 1645 | | |
1638 | | - | |
| 1646 | + | |
1639 | 1647 | | |
1640 | 1648 | | |
1641 | 1649 | | |
1642 | 1650 | | |
1643 | | - | |
| 1651 | + | |
1644 | 1652 | | |
1645 | | - | |
1646 | | - | |
| 1653 | + | |
1647 | 1654 | | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
1648 | 1658 | | |
1649 | 1659 | | |
1650 | 1660 | | |
| |||
0 commit comments