Staging: ti-st: remove global references
authorPavan Savoy <pavan_savoy@ti.com>
Thu, 8 Jul 2010 13:55:17 +0000 (08:55 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 8 Jul 2010 19:26:49 +0000 (12:26 -0700)
commit38d9df499dd3125465cf5aed3d3d6d5c26f0645d
tree9aef4a21fd8777ebca54104373de21893485861c
parentbd289d441e2eedcab2cb496146c668feab5c9c6b
Staging: ti-st: remove global references

Providing a context which can be passed around the driver, the KIM's platform
driver's struct device to be used to dev_set_drvdata and dev_get_drvdata.
The ST core's data is passed around using tty's disc_data and in other
cases the ST KIM's platform device is exposed from the board-XX.c which
adds KIM platform device whose dev is used.

Thereby remove the need for the global reference struct kim_data_s *kim_gdata;

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