u-boot/drivers
Simon Glass 709ea543b9 stdio: Pass device pointer to stdio methods
At present stdio device functions do not get any clue as to which stdio
device is being acted on. Some implementations go to great lengths to work
around this, such as defining a whole separate set of functions for each
possible device.

For driver model we need to associate a stdio_dev with a device. It doesn't
seem possible to continue with this work-around approach.

Instead, add a stdio_dev pointer to each of the stdio member functions.

Note: The serial drivers have the same problem, but it is not strictly
necessary to fix that to get driver model running. Also, if we convert
serial over to driver model the problem will go away.

Code size increases by 244 bytes for Thumb2 and 428 for PowerPC.

22: stdio: Pass device pointer to stdio methods
       arm: (for 2/2 boards)  all +244.0  bss -4.0  text +248.0
   powerpc: (for 1/1 boards)  all +428.0  text +428.0

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Marek Vasut <marex@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
2014-07-23 14:07:23 +01:00
..
bios_emulator kbuild: use Linux Kernel build scripts 2014-02-19 11:07:50 -05:00
block AHCI: Increase link timeout to 200ms 2014-07-22 07:44:28 -04:00
bootcount i2c, bootcount: add support for bootcounter on i2c devices 2014-02-20 06:46:56 +01:00
core dm: add missing includes 2014-07-18 17:53:23 -04:00
crypto includes: move openssl headers to include/u-boot 2014-06-19 11:19:04 -04:00
ddr/fsl driver/ddr/fsl: Fix printing unspecified module info for DDR4 2014-06-05 13:45:07 -07:00
demo dm: Rename struct device_id to udevice_id 2014-06-20 11:55:18 -06:00
dfu dfu: Disable default calculation of CRC32 2014-06-11 02:31:48 +02:00
dma drivers: convert makefiles to Kbuild style 2013-10-31 13:26:01 -04:00
fpga m68k: Fix warnings with gcc 4.6 2014-06-11 16:27:05 -04:00
gpio dm: gpio: Don't use the driver model uclass for SPL 2014-07-23 14:07:23 +01:00
hwmon kbuild: use Linux Kernel build scripts 2014-02-19 11:07:50 -05:00
i2c fsl_i2c: add support for 3rd and 4th I2C 2014-07-16 05:19:15 +02:00
input stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
memory ARM: keystone: aemif: move aemif driver to drivers/memory/ti-aemif.c 2014-06-19 17:53:58 -04:00
misc stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
mmc mmc: prevent some warnings with make W=1 2014-07-18 17:53:24 -04:00
mtd mtd: cfi_flash: fix clang warning 2014-07-18 17:53:22 -04:00
net stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
pci fsl/pci: Add workaround for erratum A-005434 2014-05-16 16:24:26 -05:00
pcmcia mpc8xx: remove RPXlite_dw, quantum board support 2014-07-07 19:43:01 -04:00
power Merge remote-tracking branch 'u-boot-samsung/master' 2014-07-01 20:52:51 +02:00
qe qe: disable qe when qe-ucode fails to be uploaded for "deep sleep" 2014-05-13 08:26:56 -07:00
rtc kbuild: use Linux Kernel build scripts 2014-02-19 11:07:50 -05:00
serial stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
sound build: define CPU only when arch/${ARCH}/cpu/${CPU} exists 2014-07-07 19:42:34 -04:00
spi arm: ep9315: Return back Cirrus Logic EDB9315A board support 2014-07-04 23:45:48 +02:00
tpm tpm: don't use unneeded double brackets 2014-07-07 19:43:01 -04:00
twserial drivers: convert makefiles to Kbuild style 2013-10-31 13:26:01 -04:00
usb driver/usb: include upper/lower_32_bits() from linux/compat.h 2014-07-22 07:44:24 -04:00
video stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
watchdog blackfin: Fix warning about undefined function 2014-07-07 19:47:09 -04:00
Makefile ARM: keystone: aemif: move aemif driver to drivers/memory/ti-aemif.c 2014-06-19 17:53:58 -04:00