u-boot/drivers/misc
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
..
ali512x.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cbmem_console.c stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
cros_ec_i2c.c cros_ec: Clean up multiple EC protocol support 2014-03-17 20:05:47 -06:00
cros_ec_lpc.c cros_ec: Drop old EC version support from EC driver 2014-03-17 20:05:46 -06:00
cros_ec_sandbox.c includes: move openssl headers to include/u-boot 2014-06-19 11:19:04 -04:00
cros_ec_spi.c cros_ec: spi: Add support for EC protocol version 3 2014-03-17 20:05:47 -06:00
cros_ec.c cros_ec: Implement I2C pass-through 2014-03-17 20:05:48 -06:00
ds4510.c cmd_usage(): simplify return code handling 2010-07-24 20:43:57 +02:00
fsl_ifc.c driver/fsl_ifc: Add a function to finalize CS0 address binding 2014-04-22 17:58:47 -07:00
fsl_iim.c arm: mx5: Add fuse supply enable in fsl_iim 2014-01-03 15:44:06 +01:00
gpio_led.c gpio_led: add support for inverted polarity 2013-11-25 10:41:52 -05:00
Makefile Merge branch 'master' of git://git.denx.de/u-boot-arm into master 2014-04-04 11:35:30 +02:00
mc9sdz60.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mxc_ocotp.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mxs_ocotp.c ARM: mxs: Add OCOTP driver 2014-03-31 18:28:50 +02:00
ns87308.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
pdsp188x.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
status_led.c Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
twl4030_led.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00