kernel_samsung_a53x/drivers/nvmem
Jerome Brunet 629416ed08 nvmem: meson-efuse: fix function pointer type mismatch
[ Upstream commit cbd38332c140829ab752ba4e727f98be5c257f18 ]

clang-16 warns about casting functions to incompatible types, as is done
here to call clk_disable_unprepare:

drivers/nvmem/meson-efuse.c:78:12: error: cast from 'void (*)(struct clk *)' to 'void (*)(void *)' converts to incompatible function type [-Werror,-Wcast-function-type-strict]
   78 |                                        (void(*)(void *))clk_disable_unprepare,

The pattern of getting, enabling and setting a disable callback for a
clock can be replaced with devm_clk_get_enabled(), which also fixes
this warning.

Fixes: 611fbca1c861 ("nvmem: meson-efuse: add peripheral clock")
Cc: Stable@vger.kernel.org
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Justin Stitt <justinstitt@google.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20240224114023.85535-2-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 09:22:34 +01:00
..
bcm-ocotp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx-iim.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx-ocotp-scu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx-ocotp.c nvmem: imx: correct nregs for i.MX6UL 2024-11-18 10:58:31 +01:00
jz4780-efuse.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpc18xx_eeprom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpc18xx_otp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
meson-efuse.c nvmem: meson-efuse: fix function pointer type mismatch 2024-11-19 09:22:34 +01:00
meson-mx-efuse.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk-efuse.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mxs-ocotp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom-spmi-sdam.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qfprom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rave-sp-eeprom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rockchip-efuse.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rockchip-otp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sc27xx-efuse.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
snvs_lpgpr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sprd-efuse.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stm32-romem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sunxi_sid.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
uniphier-efuse.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vf610-ocotp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
zynqmp_nvmem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00