nvmem: u-boot-env: use nvmem device helpers
authorRafał Miłecki <rafal@milecki.pl>
Thu, 21 Dec 2023 17:34:19 +0000 (18:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Jan 2024 16:01:13 +0000 (17:01 +0100)
commita832556d23c5a11115f300011a5874d6107a0d62
treeefca123ed84ab4c2dad56e85fd4135e871127021
parent7c8979b42b1a9c5604f431ba804928e55919263c
nvmem: u-boot-env: use nvmem device helpers

Use nvmem_dev_size() and nvmem_device_read() to make this driver less
mtd dependent.

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-4-zajec5@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/u-boot-env.c