u-boot/arch/arm/imx-common
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
..
Makefile Merge branch 'u-boot-imx/master' into 'u-boot-arm/master' 2014-06-30 23:00:34 +02:00
cmd_bmode.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cmd_hdmidet.c Merge git://git.denx.de/u-boot-arm 2013-07-31 11:30:38 +02:00
cpu.c sata: fix reset_sata for dwc_ahsata 2014-12-01 10:20:19 +01:00
i2c-mxv7.c imx: i2c: Zap unnecessary malloc() calls 2014-12-30 14:05:48 +01:00
iomux-v3.c imx: mx6 sabreauto: Add board support for USB EHCI 2014-11-03 11:21:49 +01:00
misc.c imx: add missing includes 2014-10-25 15:27:35 -04:00
sata.c mx6: Remove duplication of iomuxc structure 2014-07-23 12:25:41 +02:00
speed.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
spl.c imx SPL: enable boot from eMMC boot partitions. 2014-12-30 14:05:36 +01:00
spl_sd.cfg mx6: Use a common SPL configuration file 2014-11-20 10:30:18 +01:00
timer.c imx: gpt: Add High frequency clock source support for GPT 2014-11-03 11:21:41 +01:00
video.c mx6: video_skip: Fix crash on NULL pointer 2014-11-13 17:56:15 +01:00