aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/vme_scc.c
diff options
context:
space:
mode:
authorAlan Cox <alan@redhat.com>2009-01-02 08:47:26 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-02 13:19:40 -0500
commitc9f19e96a2f33cd56c2bd19f87a0c4982d011c2b (patch)
tree7ebb5f6e6648e7e8eb975944d4a18aadb05851bf /drivers/char/vme_scc.c
parent0ac6053c4db9369d7b0f9b39c30f4fb04405666b (diff)
tty: Remove some pointless casts
disc_data and driver_data are void * Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/vme_scc.c')
-rw-r--r--drivers/char/vme_scc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/char/vme_scc.c b/drivers/char/vme_scc.c
index 2d9242a45a0d..0e8234bd0e19 100644
--- a/drivers/char/vme_scc.c
+++ b/drivers/char/vme_scc.c
@@ -784,7 +784,7 @@ static void scc_setsignals(struct scc_port *port, int dtr, int rts)
784 784
785static void scc_send_xchar(struct tty_struct *tty, char ch) 785static void scc_send_xchar(struct tty_struct *tty, char ch)
786{ 786{
787 struct scc_port *port = (struct scc_port *)tty->driver_data; 787 struct scc_port *port = tty->driver_data;
788 788
789 port->x_char = ch; 789 port->x_char = ch;
790 if (ch) 790 if (ch)
@@ -911,7 +911,7 @@ static int scc_open (struct tty_struct * tty, struct file * filp)
911 911
912static void scc_throttle (struct tty_struct * tty) 912static void scc_throttle (struct tty_struct * tty)
913{ 913{
914 struct scc_port *port = (struct scc_port *)tty->driver_data; 914 struct scc_port *port = tty->driver_data;
915 unsigned long flags; 915 unsigned long flags;
916 SCC_ACCESS_INIT(port); 916 SCC_ACCESS_INIT(port);
917 917
@@ -927,7 +927,7 @@ static void scc_throttle (struct tty_struct * tty)
927 927
928static void scc_unthrottle (struct tty_struct * tty) 928static void scc_unthrottle (struct tty_struct * tty)
929{ 929{
930 struct scc_port *port = (struct scc_port *)tty->driver_data; 930 struct scc_port *port = tty->driver_data;
931 unsigned long flags; 931 unsigned long flags;
932 SCC_ACCESS_INIT(port); 932 SCC_ACCESS_INIT(port);
933 933
@@ -950,7 +950,7 @@ static int scc_ioctl(struct tty_struct *tty, struct file *file,
950 950
951static int scc_break_ctl(struct tty_struct *tty, int break_state) 951static int scc_break_ctl(struct tty_struct *tty, int break_state)
952{ 952{
953 struct scc_port *port = (struct scc_port *)tty->driver_data; 953 struct scc_port *port = tty->driver_data;
954 unsigned long flags; 954 unsigned long flags;
955 SCC_ACCESS_INIT(port); 955 SCC_ACCESS_INIT(port);
956 956