From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Wed, 27 Oct 2010 07:26:08 +0200 Subject: [U-Boot] [PATCH] post/drivers/i2c.c: fix compile error In-Reply-To: <1288128370-2556-1-git-send-email-wd@denx.de> References: <1287724834-2922-7-git-send-email-ptyser@xes-inc.com> <1288128370-2556-1-git-send-email-wd@denx.de> Message-ID: <4CC7B7F0.7050508@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Wolfgang, Wolfgang Denk wrote: > Commit 7e263ce "post/i2c: Clean up detection logic" added a "const" > qualifier to the declaration of i2c_addr_list[], missing the fact that > the list gets modified later in the code, which results in build > errors like these: > > i2c.c: In function 'i2c_post_test': > i2c.c:88: error: assignment of read-only location > > Remove the incorrect "const". > > Signed-off-by: Wolfgang Denk > Cc: Peter Tyser > Cc: Heiko Schocher > --- > post/drivers/i2c.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) Thanks for detecting this. If you want, you can apply this patch directly. Acked-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany