mirror of
https://github.com/apache/nuttx.git
synced 2026-08-17 17:43:22 +08:00
Change the 'reg' field type from uint32_t to uintptr_t in all clock provider structs (clk_gate_s, clk_divider_s, clk_phase_s, clk_fractional_divider_s, clk_multiplier_s, clk_mux_s) and their corresponding clk_register_*() function prototypes. Also update clk_write() and clk_read() inline functions to take uintptr_t parameter and remove the now-redundant (uintptr_t) cast. On 32-bit embedded platforms uintptr_t equals uint32_t so there is no functional change. On 64-bit targets (e.g. sim) this fixes -Wint-to-pointer-cast warnings that GCC15 promotes to errors. Fixes: #16896 Signed-off-by: hanzhijian <hanzhijian@zepp.com>