[U-Boot] [PATCH] post/drivers/i2c.c: fix compile error
Wolfgang Denk
wd at denx.de
Wed Oct 27 20:09:47 CEST 2010
In message <1288128370-2556-1-git-send-email-wd at denx.de> you 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 <wd at denx.de>
> Cc: Peter Tyser <ptyser at xes-inc.com>
> Cc: Heiko Schocher <hs at denx.de>
> ---
> post/drivers/i2c.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Applied.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"The computer programmer is a creator of universes for which he alone
is responsible. Universes of virtually unlimited complexity can be
created in the form of computer programs." - Joseph Weizenbaum,
_Computer Power and Human Reason_
More information about the U-Boot
mailing list