aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2019-08-24 10:17:20 +0300
committerTudor Ambarus <[email protected]>2019-08-28 12:40:29 +0300
commit36499596280359d34a0663afe0abbf34d80862e8 (patch)
tree53eb5f588a93d341d4589e1dc570104a17409d70 /lib/mpi/mpi-cmp.c
parent92094ebc385ef52d45e27d23e9a7c32abf8df44e (diff)
mtd: spi-nor: Add a ->convert_addr() method
In order to separate manufacturer quirks from the core we need to get rid of all the manufacturer specific flags, like the SNOR_F_S3AN_ADDR_DEFAULT one. This can easily be replaced by a ->convert_addr() hook, which when implemented will provide the core with an easy way to convert an absolute address into something the flash understands. Right now the only user are the S3AN chips, but other manufacturers can implement it if needed. Signed-off-by: Boris Brezillon <[email protected]> Signed-off-by: Tudor Ambarus <[email protected]> Reviewed-by: Vignesh Raghavendra <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions