nvmem: core: calculate bin_attribute size through bin_size()
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 3 Nov 2024 17:03:33 +0000 (17:03 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Nov 2024 13:00:28 +0000 (14:00 +0100)
commit00ab6e97de0071b21a548e0a823348b3309970ba
tree52e4df9fe7aa5b1ca0407f4fa6c1ee54f5ce31fe
parenta1ab720ee50686d9e9dcb6935995a75696ed2493
nvmem: core: calculate bin_attribute size through bin_size()

Stop abusing the is_bin_visible() callback to calculate the attribute
size. Instead use the new, dedicated bin_size() one.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Krzysztof Wilczyński <kw@linux.com>
Link: https://lore.kernel.org/r/20241103-sysfs-const-bin_attr-v2-4-71110628844c@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/core.c