nvmem: core: add nvmem_dev_size() helper
This is required by layouts that need to read whole NVMEM content. It's especially useful for NVMEM devices without hardcoded layout (like U-Boot environment data block). Signed-off-by:Rafał Miłecki <rafal@milecki.pl> Reviewed-by:
Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/r/20231221173421.13737-2-zajec5@gmail.com Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
parent
43f60e3f
Please register or sign in to comment