diff options
author | Alan Cox <alan@redhat.com> | 2008-12-06 01:32:22 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-06 01:32:22 -0500 |
commit | d2b88814c6a63e4018cd299826907a12068ffdb7 (patch) | |
tree | 4ef3a7e40dc725e3e0367db1d6cb91fefbeb99d6 | |
parent | 8a1ec21e6c856b996cffcd4b33f037f6748a3ab4 (diff) |
tty: driverdata and discdata are void *
Remove all the extra casting while we are cleaning up
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/wan/x25_asy.c | 10 | ||||
-rw-r--r-- | drivers/net/wireless/strip.c | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/wan/x25_asy.c b/drivers/net/wan/x25_asy.c index 7c5ac40f8725..472bd0e6dd9d 100644 --- a/drivers/net/wan/x25_asy.c +++ b/drivers/net/wan/x25_asy.c | |||
@@ -257,7 +257,7 @@ static void x25_asy_encaps(struct x25_asy *sl, unsigned char *icp, int len) | |||
257 | static void x25_asy_write_wakeup(struct tty_struct *tty) | 257 | static void x25_asy_write_wakeup(struct tty_struct *tty) |
258 | { | 258 | { |
259 | int actual; | 259 | int actual; |
260 | struct x25_asy *sl = (struct x25_asy *) tty->disc_data; | 260 | struct x25_asy *sl = tty->disc_data; |
261 | 261 | ||
262 | /* First make sure we're connected. */ | 262 | /* First make sure we're connected. */ |
263 | if (!sl || sl->magic != X25_ASY_MAGIC || !netif_running(sl->dev)) | 263 | if (!sl || sl->magic != X25_ASY_MAGIC || !netif_running(sl->dev)) |
@@ -523,7 +523,7 @@ static int x25_asy_close(struct net_device *dev) | |||
523 | static void x25_asy_receive_buf(struct tty_struct *tty, | 523 | static void x25_asy_receive_buf(struct tty_struct *tty, |
524 | const unsigned char *cp, char *fp, int count) | 524 | const unsigned char *cp, char *fp, int count) |
525 | { | 525 | { |
526 | struct x25_asy *sl = (struct x25_asy *) tty->disc_data; | 526 | struct x25_asy *sl = tty->disc_data; |
527 | 527 | ||
528 | if (!sl || sl->magic != X25_ASY_MAGIC || !netif_running(sl->dev)) | 528 | if (!sl || sl->magic != X25_ASY_MAGIC || !netif_running(sl->dev)) |
529 | return; | 529 | return; |
@@ -551,7 +551,7 @@ static void x25_asy_receive_buf(struct tty_struct *tty, | |||
551 | 551 | ||
552 | static int x25_asy_open_tty(struct tty_struct *tty) | 552 | static int x25_asy_open_tty(struct tty_struct *tty) |
553 | { | 553 | { |
554 | struct x25_asy *sl = (struct x25_asy *) tty->disc_data; | 554 | struct x25_asy *sl = tty->disc_data; |
555 | int err; | 555 | int err; |
556 | 556 | ||
557 | if (tty->ops->write == NULL) | 557 | if (tty->ops->write == NULL) |
@@ -592,7 +592,7 @@ static int x25_asy_open_tty(struct tty_struct *tty) | |||
592 | */ | 592 | */ |
593 | static void x25_asy_close_tty(struct tty_struct *tty) | 593 | static void x25_asy_close_tty(struct tty_struct *tty) |
594 | { | 594 | { |
595 | struct x25_asy *sl = (struct x25_asy *) tty->disc_data; | 595 | struct x25_asy *sl = tty->disc_data; |
596 | 596 | ||
597 | /* First make sure we're connected. */ | 597 | /* First make sure we're connected. */ |
598 | if (!sl || sl->magic != X25_ASY_MAGIC) | 598 | if (!sl || sl->magic != X25_ASY_MAGIC) |
@@ -692,7 +692,7 @@ static void x25_asy_unesc(struct x25_asy *sl, unsigned char s) | |||
692 | static int x25_asy_ioctl(struct tty_struct *tty, struct file *file, | 692 | static int x25_asy_ioctl(struct tty_struct *tty, struct file *file, |
693 | unsigned int cmd, unsigned long arg) | 693 | unsigned int cmd, unsigned long arg) |
694 | { | 694 | { |
695 | struct x25_asy *sl = (struct x25_asy *) tty->disc_data; | 695 | struct x25_asy *sl = tty->disc_data; |
696 | 696 | ||
697 | /* First make sure we're connected. */ | 697 | /* First make sure we're connected. */ |
698 | if (!sl || sl->magic != X25_ASY_MAGIC) | 698 | if (!sl || sl->magic != X25_ASY_MAGIC) |
diff --git a/drivers/net/wireless/strip.c b/drivers/net/wireless/strip.c index f93caf4be328..692e6c5e009a 100644 --- a/drivers/net/wireless/strip.c +++ b/drivers/net/wireless/strip.c | |||
@@ -1234,7 +1234,7 @@ static void ResetRadio(struct strip *strip_info) | |||
1234 | 1234 | ||
1235 | static void strip_write_some_more(struct tty_struct *tty) | 1235 | static void strip_write_some_more(struct tty_struct *tty) |
1236 | { | 1236 | { |
1237 | struct strip *strip_info = (struct strip *) tty->disc_data; | 1237 | struct strip *strip_info = tty->disc_data; |
1238 | 1238 | ||
1239 | /* First make sure we're connected. */ | 1239 | /* First make sure we're connected. */ |
1240 | if (!strip_info || strip_info->magic != STRIP_MAGIC || | 1240 | if (!strip_info || strip_info->magic != STRIP_MAGIC || |
@@ -2259,7 +2259,7 @@ static void process_message(struct strip *strip_info) | |||
2259 | static void strip_receive_buf(struct tty_struct *tty, const unsigned char *cp, | 2259 | static void strip_receive_buf(struct tty_struct *tty, const unsigned char *cp, |
2260 | char *fp, int count) | 2260 | char *fp, int count) |
2261 | { | 2261 | { |
2262 | struct strip *strip_info = (struct strip *) tty->disc_data; | 2262 | struct strip *strip_info = tty->disc_data; |
2263 | const unsigned char *end = cp + count; | 2263 | const unsigned char *end = cp + count; |
2264 | 2264 | ||
2265 | if (!strip_info || strip_info->magic != STRIP_MAGIC | 2265 | if (!strip_info || strip_info->magic != STRIP_MAGIC |
@@ -2594,7 +2594,7 @@ static struct strip *strip_alloc(void) | |||
2594 | 2594 | ||
2595 | static int strip_open(struct tty_struct *tty) | 2595 | static int strip_open(struct tty_struct *tty) |
2596 | { | 2596 | { |
2597 | struct strip *strip_info = (struct strip *) tty->disc_data; | 2597 | struct strip *strip_info = tty->disc_data; |
2598 | 2598 | ||
2599 | /* | 2599 | /* |
2600 | * First make sure we're not already connected. | 2600 | * First make sure we're not already connected. |
@@ -2665,7 +2665,7 @@ static int strip_open(struct tty_struct *tty) | |||
2665 | 2665 | ||
2666 | static void strip_close(struct tty_struct *tty) | 2666 | static void strip_close(struct tty_struct *tty) |
2667 | { | 2667 | { |
2668 | struct strip *strip_info = (struct strip *) tty->disc_data; | 2668 | struct strip *strip_info = tty->disc_data; |
2669 | 2669 | ||
2670 | /* | 2670 | /* |
2671 | * First make sure we're connected. | 2671 | * First make sure we're connected. |
@@ -2691,7 +2691,7 @@ static void strip_close(struct tty_struct *tty) | |||
2691 | static int strip_ioctl(struct tty_struct *tty, struct file *file, | 2691 | static int strip_ioctl(struct tty_struct *tty, struct file *file, |
2692 | unsigned int cmd, unsigned long arg) | 2692 | unsigned int cmd, unsigned long arg) |
2693 | { | 2693 | { |
2694 | struct strip *strip_info = (struct strip *) tty->disc_data; | 2694 | struct strip *strip_info = tty->disc_data; |
2695 | 2695 | ||
2696 | /* | 2696 | /* |
2697 | * First make sure we're connected. | 2697 | * First make sure we're connected. |