diff options
author | Pavan Savoy <pavan_savoy@ti.com> | 2010-07-08 08:55:17 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-07-08 12:26:49 -0700 |
commit | 38d9df499dd3125465cf5aed3d3d6d5c26f0645d (patch) | |
tree | 9aef4a21fd8777ebca54104373de21893485861c /drivers/staging/ti-st/st.h | |
parent | Staging: ti-st: Update TODO (diff) | |
download | linux-dev-38d9df499dd3125465cf5aed3d3d6d5c26f0645d.tar.xz linux-dev-38d9df499dd3125465cf5aed3d3d6d5c26f0645d.zip |
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>
Diffstat (limited to 'drivers/staging/ti-st/st.h')
-rw-r--r-- | drivers/staging/ti-st/st.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/ti-st/st.h b/drivers/staging/ti-st/st.h index e8fc97e32c94..e6a8ffde30af 100644 --- a/drivers/staging/ti-st/st.h +++ b/drivers/staging/ti-st/st.h @@ -84,7 +84,8 @@ struct st_proto_s { long (*write) (struct sk_buff *skb); }; -extern long st_register(struct st_proto_s *new_proto); -extern long st_unregister(enum proto_type type); +extern long st_register(struct st_proto_s *); +extern long st_unregister(enum proto_type); +extern struct platform_device *st_get_plat_device(void); #endif /* ST_H */ |