From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Walle Date: Tue, 29 May 2012 19:02:55 +0200 Subject: [U-Boot] [PATCH 1/3] kirkwood: add kirkwood_mpp_save/restore functions In-Reply-To: References: <1337165623-7118-1-git-send-email-valentin.longchamp@keymile.com> <201205290007.36284.michael@walle.cc> Message-ID: <201205291902.55578.michael@walle.cc> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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