]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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>
Wed, 18 Sep 2024 17:24:04 +0000 (19:24 +0200)
commit2eea394c31cbc3d853a26ef2ddb8f5bd24d4d002
treea6e0a484f10fd83c2a35b905c6e0159668eb1bef
parentae91c9c7b67d4d47206fe8cbb2ab89687d283dcc
nvmem: u-boot-env: use nvmem device helpers

[ Upstream commit a832556d23c5a11115f300011a5874d6107a0d62 ]

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>
Stable-dep-of: 8679e8b4a1eb ("nvmem: u-boot-env: error if NVMEM device is too small")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvmem/u-boot-env.c