Skip to content

Commit

Permalink
ARM: orion5x: fix compiler cast warnings in ts78xx-setup.c
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
[np: used min_t() as suggested by Sergei Shtylyov <sshtylyov@mvista.com>]
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
  • Loading branch information
Alexander Clouter authored and Nicolas Pitre committed Mar 5, 2011
1 parent b388233 commit 53936c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-orion5x/ts78xx-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ static void ts78xx_ts_nand_write_buf(struct mtd_info *mtd,
int sz;

if (off) {
sz = min(4 - off, len);
sz = min_t(int, 4 - off, len);
writesb(io_base, buf, sz);
buf += sz;
len -= sz;
Expand All @@ -227,7 +227,7 @@ static void ts78xx_ts_nand_read_buf(struct mtd_info *mtd,
int sz;

if (off) {
sz = min(4 - off, len);
sz = min_t(int, 4 - off, len);
readsb(io_base, buf, sz);
buf += sz;
len -= sz;
Expand Down

0 comments on commit 53936c5

Please sign in to comment.