]> git.dujemihanovic.xyz Git - u-boot.git/commit
stdio/device: rework function naming convention
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Sat, 16 May 2009 10:14:54 +0000 (12:14 +0200)
committerWolfgang Denk <wd@denx.de>
Fri, 17 Jul 2009 22:27:46 +0000 (00:27 +0200)
commit52cb4d4fb3487313f5a72ea740f527a4aefaa365
treee673bea782668009ec4818c16b159d7cf1b062ba
parentf732a7598fa36d48241df20b1a1f4cdbf09f75ee
stdio/device: rework function naming convention

So far the console API uses the following naming convention:

======Extract======
typedef struct device_t;

int device_register (device_t * dev);
int devices_init (void);
int device_deregister(char *devname);
struct list_head* device_get_list(void);
device_t* device_get_by_name(char* name);
device_t* device_clone(device_t *dev);
=======

which is too generic and confusing.

Instead of using device_XX and device_t we change this
into stdio_XX and stdio_dev

This will also allow to add later a generic device mechanism in order
to have support for multiple devices and driver instances.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Edited commit message.

Signed-off-by: Wolfgang Denk <wd@denx.de>
63 files changed:
board/MAI/AmigaOneG3SE/ps2kbd.c
board/MAI/AmigaOneG3SE/video.c
board/bf527-ezkit/video.c
board/bf533-stamp/video.c
board/bf548-ezkit/video.c
board/bmw/bmw.c
board/freescale/mpc8610hpcd/mpc8610hpcd_diu.c
board/linkstation/avr.c
board/mpl/common/common_util.c
board/mpl/common/isa.c
board/mpl/common/kbd.c
board/mpl/pati/pati.c
board/netphone/phone_console.c
board/rbc823/kbd.c
board/trab/vfd.c
common/Makefile
common/cmd_console.c
common/cmd_log.c
common/cmd_terminal.c
common/console.c
common/iomux.c
common/lcd.c
common/serial.c
common/stdio.c [moved from common/devices.c with 84% similarity]
common/usb_kbd.c
cpu/blackfin/jtag-console.c
cpu/mpc512x/diu.c
cpu/mpc8xx/lcd.c
cpu/mpc8xx/video.c
cpu/pxa/pxafb.c
drivers/input/keyboard.c
drivers/net/netconsole.c
drivers/serial/arm_dcc.c
drivers/serial/usbtty.c
drivers/usb/musb/musb_hcd.c
drivers/usb/musb/musb_hcd.h
drivers/video/cfb_console.c
include/configs/AmigaOneG3SE.h
include/configs/MIP405.h
include/configs/MPC8610HPCD.h
include/configs/MPC8641HPCN.h
include/configs/PIP405.h
include/configs/VCMA9.h
include/configs/gr_ep2s60.h
include/configs/mp2usb.h
include/console.h [deleted file]
include/iomux.h
include/serial.h
include/stdio_dev.h [moved from include/devices.h with 85% similarity]
lib_arm/board.c
lib_avr32/board.c
lib_blackfin/board.c
lib_blackfin/post.c
lib_i386/board.c
lib_i386/video.c
lib_m68k/board.c
lib_mips/board.c
lib_nios/board.c
lib_nios2/board.c
lib_ppc/board.c
lib_sh/board.c
lib_sparc/board.c
post/post.c