]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: mxc: Silence a clang warning
authorFabio Estevam <festevam@gmail.com>
Thu, 26 May 2022 01:14:59 +0000 (22:14 -0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 1 Jun 2022 21:19:17 +0000 (23:19 +0200)
commitf78e3d407a339ffdd2620140300f821ea41118f4
tree5e00ac62254bfb0b02d4a95ca8581749dfad0d59
parent3f3489248927a53fcfec571ff603163f6b676a46
rtc: mxc: Silence a clang warning

Change the of_device_get_match_data() cast to (uintptr_t)
to silence the following clang warning:

drivers/rtc/rtc-mxc.c:315:19: warning: cast to smaller integer type 'enum imx_rtc_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]

Reported-by: kernel test robot <lkp@intel.com>
Fixes: ba7aa63000f2 ("rtc: mxc: use of_device_get_match_data")
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220526011459.1167197-1-festevam@gmail.com
drivers/rtc/rtc-mxc.c