diff options
author | Pavan Savoy <pavan_savoy@ti.com> | 2010-07-08 13:55:17 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-07-08 19:26:49 (GMT) |
commit | 38d9df499dd3125465cf5aed3d3d6d5c26f0645d (patch) | |
tree | 9aef4a21fd8777ebca54104373de21893485861c /drivers/staging/ti-st/st_core.h | |
parent | bd289d441e2eedcab2cb496146c668feab5c9c6b (diff) | |
download | linux-38d9df499dd3125465cf5aed3d3d6d5c26f0645d.tar.xz |
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_core.h')
-rw-r--r-- | drivers/staging/ti-st/st_core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/ti-st/st_core.h b/drivers/staging/ti-st/st_core.h index f271c88..53369f2 100644 --- a/drivers/staging/ti-st/st_core.h +++ b/drivers/staging/ti-st/st_core.h @@ -69,6 +69,8 @@ struct st_data_s { spinlock_t lock; /* ST LL state lock */ unsigned char protos_registered; unsigned long ll_state; /* ST LL power state */ +/* device reference to kim data */ + void *kim_data; }; /* point this to tty->driver->write or tty->ops->write |