Staging: ti-st: give proto drivers context
commitbb8f3c061f2e7282730059ae524ff19d47d70b17
authorPavan Savoy <pavan_savoy@ti.com>
Thu, 22 Jul 2010 10:32:07 +0000 (22 05:32 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Jul 2010 19:07:28 +0000 (22 12:07 -0700)
treed0ed96cfe9af7d54dc5e1f655c00ee82162b4c8c
parent36b5aee46b5e4788758409829926c631de0a64a3
Staging: ti-st: give proto drivers context

protocol drivers such as BT, FM and GPS when registering
to ST now provide their own private data which they expect
when their functions namely registration completed & receive
are called.
Also upon tty_close, set protos_registered count to 0, although
all protocols are marked un-registered.

Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ti-st/bt_drv.c
drivers/staging/ti-st/st.h
drivers/staging/ti-st/st_core.c