diff options
author | Alan Cox <alan@redhat.com> | 2009-01-02 08:47:26 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-02 13:19:40 -0500 |
commit | c9f19e96a2f33cd56c2bd19f87a0c4982d011c2b (patch) | |
tree | 7ebb5f6e6648e7e8eb975944d4a18aadb05851bf /drivers/char/riscom8.c | |
parent | 0ac6053c4db9369d7b0f9b39c30f4fb04405666b (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/riscom8.c')
-rw-r--r-- | drivers/char/riscom8.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/char/riscom8.c b/drivers/char/riscom8.c index 9ac5febd8abd..9af8d74875bc 100644 --- a/drivers/char/riscom8.c +++ b/drivers/char/riscom8.c | |||
@@ -906,7 +906,7 @@ static int rc_open(struct tty_struct *tty, struct file *filp) | |||
906 | 906 | ||
907 | static void rc_flush_buffer(struct tty_struct *tty) | 907 | static void rc_flush_buffer(struct tty_struct *tty) |
908 | { | 908 | { |
909 | struct riscom_port *port = (struct riscom_port *)tty->driver_data; | 909 | struct riscom_port *port = tty->driver_data; |
910 | unsigned long flags; | 910 | unsigned long flags; |
911 | 911 | ||
912 | if (rc_paranoia_check(port, tty->name, "rc_flush_buffer")) | 912 | if (rc_paranoia_check(port, tty->name, "rc_flush_buffer")) |
@@ -921,7 +921,7 @@ static void rc_flush_buffer(struct tty_struct *tty) | |||
921 | 921 | ||
922 | static void rc_close(struct tty_struct *tty, struct file *filp) | 922 | static void rc_close(struct tty_struct *tty, struct file *filp) |
923 | { | 923 | { |
924 | struct riscom_port *port = (struct riscom_port *) tty->driver_data; | 924 | struct riscom_port *port = tty->driver_data; |
925 | struct riscom_board *bp; | 925 | struct riscom_board *bp; |
926 | unsigned long flags; | 926 | unsigned long flags; |
927 | unsigned long timeout; | 927 | unsigned long timeout; |
@@ -972,7 +972,7 @@ static void rc_close(struct tty_struct *tty, struct file *filp) | |||
972 | static int rc_write(struct tty_struct *tty, | 972 | static int rc_write(struct tty_struct *tty, |
973 | const unsigned char *buf, int count) | 973 | const unsigned char *buf, int count) |
974 | { | 974 | { |
975 | struct riscom_port *port = (struct riscom_port *)tty->driver_data; | 975 | struct riscom_port *port = tty->driver_data; |
976 | struct riscom_board *bp; | 976 | struct riscom_board *bp; |
977 | int c, total = 0; | 977 | int c, total = 0; |
978 | unsigned long flags; | 978 | unsigned long flags; |
@@ -1015,7 +1015,7 @@ static int rc_write(struct tty_struct *tty, | |||
1015 | 1015 | ||
1016 | static int rc_put_char(struct tty_struct *tty, unsigned char ch) | 1016 | static int rc_put_char(struct tty_struct *tty, unsigned char ch) |
1017 | { | 1017 | { |
1018 | struct riscom_port *port = (struct riscom_port *)tty->driver_data; | 1018 | struct riscom_port *port = tty->driver_data; |
1019 | unsigned long flags; | 1019 | unsigned long flags; |
1020 | int ret = 0; | 1020 | int ret = 0; |
1021 | 1021 | ||
@@ -1039,7 +1039,7 @@ out: | |||
1039 | 1039 | ||
1040 | static void rc_flush_chars(struct tty_struct *tty) | 1040 | static void rc_flush_chars(struct tty_struct *tty) |
1041 | { | 1041 | { |
1042 | struct riscom_port *port = (struct riscom_port *)tty->driver_data; | 1042 | struct riscom_port *port = tty->driver_data; |
1043 | unsigned long flags; | 1043 | unsigned long flags; |
1044 | 1044 | ||
1045 | if (rc_paranoia_check(port, tty->name, "rc_flush_chars")) | 1045 | if (rc_paranoia_check(port, tty->name, "rc_flush_chars")) |
@@ -1059,7 +1059,7 @@ static void rc_flush_chars(struct tty_struct *tty) | |||
1059 | 1059 | ||
1060 | static int rc_write_room(struct tty_struct *tty) | 1060 | static int rc_write_room(struct tty_struct *tty) |
1061 | { | 1061 | { |
1062 | struct riscom_port *port = (struct riscom_port *)tty->driver_data; | 1062 | struct riscom_port *port = tty->driver_data; |
1063 | int ret; | 1063 | int ret; |
1064 | 1064 | ||
1065 | if (rc_paranoia_check(port, tty->name, "rc_write_room")) | 1065 | if (rc_paranoia_check(port, tty->name, "rc_write_room")) |
@@ -1073,7 +1073,7 @@ static int rc_write_room(struct tty_struct *tty) | |||
1073 | 1073 | ||
1074 | static int rc_chars_in_buffer(struct tty_struct *tty) | 1074 | static int rc_chars_in_buffer(struct tty_struct *tty) |
1075 | { | 1075 | { |
1076 | struct riscom_port *port = (struct riscom_port *)tty->driver_data; | 1076 | struct riscom_port *port = tty->driver_data; |
1077 | 1077 | ||
1078 | if (rc_paranoia_check(port, tty->name, "rc_chars_in_buffer")) | 1078 | if (rc_paranoia_check(port, tty->name, "rc_chars_in_buffer")) |
1079 | return 0; | 1079 | return 0; |
@@ -1083,7 +1083,7 @@ static int rc_chars_in_buffer(struct tty_struct *tty) | |||
1083 | 1083 | ||
1084 | static int rc_tiocmget(struct tty_struct *tty, struct file *file) | 1084 | static int rc_tiocmget(struct tty_struct *tty, struct file *file) |
1085 | { | 1085 | { |
1086 | struct riscom_port *port = (struct riscom_port *)tty->driver_data; | 1086 | struct riscom_port *port = tty->driver_data; |
1087 | struct riscom_board *bp; | 1087 | struct riscom_board *bp; |
1088 | unsigned char status; | 1088 | unsigned char status; |
1089 | unsigned int result; | 1089 | unsigned int result; |
@@ -1113,7 +1113,7 @@ static int rc_tiocmget(struct tty_struct *tty, struct file *file) | |||
1113 | static int rc_tiocmset(struct tty_struct *tty, struct file *file, | 1113 | static int rc_tiocmset(struct tty_struct *tty, struct file *file, |
1114 | unsigned int set, unsigned int clear) | 1114 | unsigned int set, unsigned int clear) |
1115 | { | 1115 | { |
1116 | struct riscom_port *port = (struct riscom_port *)tty->driver_data; | 1116 | struct riscom_port *port = tty->driver_data; |
1117 | unsigned long flags; | 1117 | unsigned long flags; |
1118 | struct riscom_board *bp; | 1118 | struct riscom_board *bp; |
1119 | 1119 | ||
@@ -1145,7 +1145,7 @@ static int rc_tiocmset(struct tty_struct *tty, struct file *file, | |||
1145 | 1145 | ||
1146 | static int rc_send_break(struct tty_struct *tty, int length) | 1146 | static int rc_send_break(struct tty_struct *tty, int length) |
1147 | { | 1147 | { |
1148 | struct riscom_port *port = (struct riscom_port *)tty->driver_data; | 1148 | struct riscom_port *port = tty->driver_data; |
1149 | struct riscom_board *bp = port_Board(port); | 1149 | struct riscom_board *bp = port_Board(port); |
1150 | unsigned long flags; | 1150 | unsigned long flags; |
1151 | 1151 | ||
@@ -1238,7 +1238,7 @@ static int rc_get_serial_info(struct riscom_port *port, | |||
1238 | static int rc_ioctl(struct tty_struct *tty, struct file *filp, | 1238 | static int rc_ioctl(struct tty_struct *tty, struct file *filp, |
1239 | unsigned int cmd, unsigned long arg) | 1239 | unsigned int cmd, unsigned long arg) |
1240 | { | 1240 | { |
1241 | struct riscom_port *port = (struct riscom_port *)tty->driver_data; | 1241 | struct riscom_port *port = tty->driver_data; |
1242 | void __user *argp = (void __user *)arg; | 1242 | void __user *argp = (void __user *)arg; |
1243 | int retval; | 1243 | int retval; |
1244 | 1244 | ||
@@ -1264,7 +1264,7 @@ static int rc_ioctl(struct tty_struct *tty, struct file *filp, | |||
1264 | 1264 | ||
1265 | static void rc_throttle(struct tty_struct *tty) | 1265 | static void rc_throttle(struct tty_struct *tty) |
1266 | { | 1266 | { |
1267 | struct riscom_port *port = (struct riscom_port *)tty->driver_data; | 1267 | struct riscom_port *port = tty->driver_data; |
1268 | struct riscom_board *bp; | 1268 | struct riscom_board *bp; |
1269 | unsigned long flags; | 1269 | unsigned long flags; |
1270 | 1270 | ||
@@ -1286,7 +1286,7 @@ static void rc_throttle(struct tty_struct *tty) | |||
1286 | 1286 | ||
1287 | static void rc_unthrottle(struct tty_struct *tty) | 1287 | static void rc_unthrottle(struct tty_struct *tty) |
1288 | { | 1288 | { |
1289 | struct riscom_port *port = (struct riscom_port *)tty->driver_data; | 1289 | struct riscom_port *port = tty->driver_data; |
1290 | struct riscom_board *bp; | 1290 | struct riscom_board *bp; |
1291 | unsigned long flags; | 1291 | unsigned long flags; |
1292 | 1292 | ||
@@ -1308,7 +1308,7 @@ static void rc_unthrottle(struct tty_struct *tty) | |||
1308 | 1308 | ||
1309 | static void rc_stop(struct tty_struct *tty) | 1309 | static void rc_stop(struct tty_struct *tty) |
1310 | { | 1310 | { |
1311 | struct riscom_port *port = (struct riscom_port *)tty->driver_data; | 1311 | struct riscom_port *port = tty->driver_data; |
1312 | struct riscom_board *bp; | 1312 | struct riscom_board *bp; |
1313 | unsigned long flags; | 1313 | unsigned long flags; |
1314 | 1314 | ||
@@ -1326,7 +1326,7 @@ static void rc_stop(struct tty_struct *tty) | |||
1326 | 1326 | ||
1327 | static void rc_start(struct tty_struct *tty) | 1327 | static void rc_start(struct tty_struct *tty) |
1328 | { | 1328 | { |
1329 | struct riscom_port *port = (struct riscom_port *)tty->driver_data; | 1329 | struct riscom_port *port = tty->driver_data; |
1330 | struct riscom_board *bp; | 1330 | struct riscom_board *bp; |
1331 | unsigned long flags; | 1331 | unsigned long flags; |
1332 | 1332 | ||
@@ -1347,7 +1347,7 @@ static void rc_start(struct tty_struct *tty) | |||
1347 | 1347 | ||
1348 | static void rc_hangup(struct tty_struct *tty) | 1348 | static void rc_hangup(struct tty_struct *tty) |
1349 | { | 1349 | { |
1350 | struct riscom_port *port = (struct riscom_port *)tty->driver_data; | 1350 | struct riscom_port *port = tty->driver_data; |
1351 | struct riscom_board *bp; | 1351 | struct riscom_board *bp; |
1352 | unsigned long flags; | 1352 | unsigned long flags; |
1353 | 1353 | ||
@@ -1368,7 +1368,7 @@ static void rc_hangup(struct tty_struct *tty) | |||
1368 | static void rc_set_termios(struct tty_struct *tty, | 1368 | static void rc_set_termios(struct tty_struct *tty, |
1369 | struct ktermios *old_termios) | 1369 | struct ktermios *old_termios) |
1370 | { | 1370 | { |
1371 | struct riscom_port *port = (struct riscom_port *)tty->driver_data; | 1371 | struct riscom_port *port = tty->driver_data; |
1372 | unsigned long flags; | 1372 | unsigned long flags; |
1373 | 1373 | ||
1374 | if (rc_paranoia_check(port, tty->name, "rc_set_termios")) | 1374 | if (rc_paranoia_check(port, tty->name, "rc_set_termios")) |