Skip to content
Commit f78e3d40 authored by Fabio Estevam's avatar Fabio Estevam Committed by Alexandre Belloni
Browse files

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: default avatarkernel test robot <lkp@intel.com>
Fixes: ba7aa630

 ("rtc: mxc: use of_device_get_match_data")
Signed-off-by: default avatarFabio Estevam <festevam@gmail.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220526011459.1167197-1-festevam@gmail.com
parent 3f348924
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment