u-boot-brain/arch
Marek Vasut cd3c5896b6 imx: i2c: Zap unnecessary malloc() calls
The malloc() calls are unnecessary, just allocate the stuff on stack.
While at it, reorder the code a little, so that only one variable is
used for the text, use snprintf() instead of sprintf() and use %01d
as a formatting string to avoid any possible overflows.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Igor Grinberg <grinberg@compulab.co.il>
Cc: Nikita Kiryanov <nikita@compulab.co.il>
Cc: Sean Cross <xobs@kosagi.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
2014-12-30 14:05:48 +01:00
..
arc Kbuild: introduce Makefile in arch/$ARCH/ 2014-12-08 09:35:45 -05:00
arm imx: i2c: Zap unnecessary malloc() calls 2014-12-30 14:05:48 +01:00
avr32 Kbuild: introduce Makefile in arch/$ARCH/ 2014-12-08 09:35:45 -05:00
blackfin blackfin: include <linux/compiler.h> rather than define __iomem 2014-12-08 09:35:46 -05:00
m68k Kbuild: introduce Makefile in arch/$ARCH/ 2014-12-08 09:35:45 -05:00
microblaze Kbuild: introduce Makefile in arch/$ARCH/ 2014-12-08 09:35:45 -05:00
mips Replace <compiler.h> with <linux/compiler.h> 2014-12-08 09:35:46 -05:00
nds32 Kbuild: introduce Makefile in arch/$ARCH/ 2014-12-08 09:35:45 -05:00
nios2 Kbuild: introduce Makefile in arch/$ARCH/ 2014-12-08 09:35:45 -05:00
openrisc Kbuild: introduce Makefile in arch/$ARCH/ 2014-12-08 09:35:45 -05:00
powerpc p5040ds: changed liodn offsets 2014-12-15 09:16:34 -08:00
sandbox dm: i2c: dts: Add an I2C bus for sandbox 2014-12-11 13:18:43 -07:00
sh Replace <compiler.h> with <linux/compiler.h> 2014-12-08 09:35:46 -05:00
sparc Kbuild: introduce Makefile in arch/$ARCH/ 2014-12-08 09:35:45 -05:00
x86 x86: Clean up the FSP support codes 2014-12-18 17:26:08 -07:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig kconfig: move CONFIG_USE_PRIVATE_LIBGCC to Kconfig 2014-10-23 13:19:09 -04:00