[U-Boot] [PATCH V3 05/13] i2c: Create common default i2c_set_bus_num() function
Mike Frysinger
vapier at gentoo.org
Mon Oct 10 17:19:47 CEST 2011
On Monday 10 October 2011 06:50:12 Stefano Babic wrote:
> +int __def_i2c_set_bus_num(unsigned int bus)
> +{
> + return 0;
> +}
> +int i2c_set_bus_num(unsigned int)
> + __attribute__((weak, alias("__def_i2c_set_bus_num")));
any reason this can't just be:
__weak int i2c_set_bus_num(unsigned int bus)
{
return 0;
}
i can understand having a default func when it actually does something, but i
don't see much value in a stub that returns 0
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111010/93d9d00b/attachment.pgp
More information about the U-Boot
mailing list