[U-Boot] [PATCH 1/3] kirkwood: add kirkwood_mpp_save/restore functions

Michael Walle michael at walle.cc
Tue May 29 19:02:55 CEST 2012


Am Dienstag 29 Mai 2012, 14:42:08 schrieb Prafulla Wadaskar:
> And const will be a problem since mpp_ctrl will be array that will be
> dynamically modified.
But not within kirkwood_mpp_restore(), right? So an mpp_ctrl array would be 
implicitly casted from u32* to const u32*.

so we would have the following declarations:
 kirkwood_mpp_restore(const u32 *mpp_list)
 kirkwood_mpp_conf(const u32 *mpp_list)
 kirkwood_mpp_save(u32 *mpp_list)

where only the latter modifies mpp_list.

-- 
michael


More information about the U-Boot mailing list