diff options
author | Igor Grinberg <grinberg@compulab.co.il> | 2011-12-12 10:08:33 (GMT) |
---|---|---|
committer | Remy Bohmer <linux@bohmer.net> | 2011-12-16 20:03:37 (GMT) |
commit | 4256101f8ca908438ddbb5bd649274dbfd936f22 (patch) | |
tree | e5b0f8d168ee0f999f9ea06042b08c75cec6d5e6 /drivers/usb/ulpi/ulpi-viewport.c | |
parent | 1113a79b2a31a9051b3a1afd3edbbdf013f88833 (diff) | |
download | u-boot-4256101f8ca908438ddbb5bd649274dbfd936f22.tar.xz |
USB: ULPI: clean a mixup of return types
Clean a mixup between u32 and int as a return type
for functions returning error values.
Use int as it is native (and widely used) return type.
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/usb/ulpi/ulpi-viewport.c')
-rw-r--r-- | drivers/usb/ulpi/ulpi-viewport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/ulpi/ulpi-viewport.c b/drivers/usb/ulpi/ulpi-viewport.c index fa2e004..490fb0e 100644 --- a/drivers/usb/ulpi/ulpi-viewport.c +++ b/drivers/usb/ulpi/ulpi-viewport.c @@ -98,7 +98,7 @@ static int ulpi_request(u32 ulpi_viewport, u32 value) return err; } -u32 ulpi_write(u32 ulpi_viewport, u8 *reg, u32 value) +int ulpi_write(u32 ulpi_viewport, u8 *reg, u32 value) { u32 val = ULPI_RWRUN | ULPI_RWCTRL | ((u32)reg << 16) | (value & 0xff); @@ -107,7 +107,7 @@ u32 ulpi_write(u32 ulpi_viewport, u8 *reg, u32 value) u32 ulpi_read(u32 ulpi_viewport, u8 *reg) { - u32 err; + int err; u32 val = ULPI_RWRUN | ((u32)reg << 16); err = ulpi_request(ulpi_viewport, val); |