From: Michael Walle Date: Tue, 29 May 2012 00:07:36 +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> <1337165623-7118-2-git-send-email-valentin.longchamp@keymile.com> Message-ID: <201205290007.36284.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 Donnerstag 24 Mai 2012, 10:26:44 schrieb Prafulla Wadaskar: > > + > > +void kirkwood_mpp_save(void) > > This should be > void kirkwood_mpp_save(unsigned int *mpp_ctrl, int len) > > > +{ > > + int i; > > + > > + for (i = 0; i < MPP_NR_REGS; i++) > > + mpp_regs[i] = readl(MPP_CTRL(i)); > > +} > > + > > +void kirkwood_mpp_restore(void) > > Same here > void kirkwood_mpp_restore(unsigned int *mpp_ctrl, int len) or even better kirkwood_mpp_restore(const unsigned int *mpp_ctrl, int len) btw. sometimes "unsigned int" is used and sometimes "u32", could we agree on one? Eg. kirkwood_mpp_conf() is declared with unsigned int but defined with u32. -- Michael