From: Lidza Louina <lidza.louina@gmail.com>
To: driverdev-devel@linuxdriverproject.org,
Greg KH <gregkh@linuxfoundation.org>,
Mark Hounschell <markh@compro.net>
Cc: Lidza Louina <lidza.louina@gmail.com>
Subject: [PATCH 4/9] staging: dgnc: fixes error: invalid type argument of ‘->’ (have ‘struct ktermios’)
Date: Mon, 12 Aug 2013 17:05:08 -0400 [thread overview]
Message-ID: <1376341513-20578-5-git-send-email-lidza.louina@gmail.com> (raw)
In-Reply-To: <1376341513-20578-1-git-send-email-lidza.louina@gmail.com>
Signed-off-by: Lidza Louina <lidza.louina@gmail.com>
---
drivers/staging/dgnc/dgnc_tty.c | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c
index 461e881..63b80e2 100644
--- a/drivers/staging/dgnc/dgnc_tty.c
+++ b/drivers/staging/dgnc/dgnc_tty.c
@@ -719,7 +719,7 @@ void dgnc_input(struct channel_t *ch)
* flush input data and return immediately.
*/
if (!tp || (tp->magic != TTY_MAGIC) || !(ch->ch_tun.un_flags & UN_ISOPEN) ||
- !(tp->termios->c_cflag & CREAD) || (ch->ch_tun.un_flags & UN_CLOSING)) {
+ !(tp->termios.c_cflag & CREAD) || (ch->ch_tun.un_flags & UN_CLOSING)) {
DPR_READ(("input. dropping %d bytes on port %d...\n", data_len, ch->ch_portnum));
DPR_READ(("input. tp: %p tp->magic: %x MAGIC:%x ch flags: %x\n",
@@ -1495,12 +1495,12 @@ static int dgnc_tty_open(struct tty_struct *tty, struct file *file)
ch->ch_stop_sending_break = 0;
ch->ch_stops_sent = 0;
- ch->ch_c_cflag = tty->termios->c_cflag;
- ch->ch_c_iflag = tty->termios->c_iflag;
- ch->ch_c_oflag = tty->termios->c_oflag;
- ch->ch_c_lflag = tty->termios->c_lflag;
- ch->ch_startc = tty->termios->c_cc[VSTART];
- ch->ch_stopc = tty->termios->c_cc[VSTOP];
+ ch->ch_c_cflag = tty->termios.c_cflag;
+ ch->ch_c_iflag = tty->termios.c_iflag;
+ ch->ch_c_oflag = tty->termios.c_oflag;
+ ch->ch_c_lflag = tty->termios.c_lflag;
+ ch->ch_startc = tty->termios.c_cc[VSTART];
+ ch->ch_stopc = tty->termios.c_cc[VSTOP];
/*
* Bring up RTS and DTR...
@@ -2874,12 +2874,12 @@ static void dgnc_tty_set_termios(struct tty_struct *tty, struct ktermios *old_te
DGNC_LOCK(ch->ch_lock, lock_flags);
- ch->ch_c_cflag = tty->termios->c_cflag;
- ch->ch_c_iflag = tty->termios->c_iflag;
- ch->ch_c_oflag = tty->termios->c_oflag;
- ch->ch_c_lflag = tty->termios->c_lflag;
- ch->ch_startc = tty->termios->c_cc[VSTART];
- ch->ch_stopc = tty->termios->c_cc[VSTOP];
+ ch->ch_c_cflag = tty->termios.c_cflag;
+ ch->ch_c_iflag = tty->termios.c_iflag;
+ ch->ch_c_oflag = tty->termios.c_oflag;
+ ch->ch_c_lflag = tty->termios.c_lflag;
+ ch->ch_startc = tty->termios.c_cc[VSTART];
+ ch->ch_stopc = tty->termios.c_cc[VSTOP];
ch->ch_bd->bd_ops->param(tty);
dgnc_carrier(ch);
@@ -3272,7 +3272,7 @@ static int dgnc_tty_ioctl(struct tty_struct *tty, struct file *file, unsigned in
return(rc);
DGNC_LOCK(ch->ch_lock, lock_flags);
- tty->termios->c_cflag = ((tty->termios->c_cflag & ~CLOCAL) | (arg ? CLOCAL : 0));
+ tty->termios.c_cflag = ((tty->termios.c_cflag & ~CLOCAL) | (arg ? CLOCAL : 0));
ch->ch_bd->bd_ops->param(tty);
DGNC_UNLOCK(ch->ch_lock, lock_flags);
--
1.8.1.2
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
next prev parent reply other threads:[~2013-08-12 21:06 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-12 21:05 [PATCH 0/9] staging: dgnc: builds this driver into the kernel Lidza Louina
2013-08-12 21:05 ` [PATCH 1/9] staging: dgnc: removes Makefile.inc Lidza Louina
2013-08-12 21:13 ` Greg KH
2013-08-13 2:41 ` Lidza Louina
2013-08-12 21:05 ` [PATCH 2/9] staging: dgnc: builds into kernel Lidza Louina
2013-08-12 21:10 ` Greg KH
2013-08-13 2:22 ` Lidza Louina
2013-08-12 21:05 ` [PATCH 3/9] staging: dgnc: removes proc code Lidza Louina
2013-08-12 21:11 ` Greg KH
2013-08-13 2:32 ` Lidza Louina
2013-08-12 21:05 ` Lidza Louina [this message]
2013-08-12 21:12 ` [PATCH 4/9] staging: dgnc: fixes error: invalid type argument of ‘->’ (have ���struct ktermios’) Greg KH
2013-08-12 21:05 ` [PATCH 5/9] staging: dgnc: fixes error: expected ‘struct tty_port *’ but argument is of type ‘struct tty_struct *’ Lidza Louina
2013-08-12 21:13 ` Greg KH
2013-08-12 21:05 ` [PATCH 6/9] staging: dgnc: fixes error: incompatible types when assigning to type ‘struct ktermios *’ from type ‘struct ktermios’ Lidza Louina
2013-08-12 21:14 ` Greg KH
2013-08-13 7:30 ` Dan Carpenter
2013-08-13 13:20 ` Lidza Louina
2013-08-12 21:05 ` [PATCH 7/9] staging: dgnc: fixes warning: initialization from incompatible pointer type Lidza Louina
2013-08-13 7:32 ` Dan Carpenter
2013-08-13 13:26 ` Lidza Louina
2013-08-12 21:05 ` [PATCH 8/9] staging: dgnc: removes read_cnt, real_raw and rawreadok Lidza Louina
2013-08-12 21:05 ` [PATCH 9/9] staging: dgnc: fixes warning: unused variable ‘buf’ Lidza Louina
2013-08-13 7:35 ` Dan Carpenter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1376341513-20578-5-git-send-email-lidza.louina@gmail.com \
--to=lidza.louina@gmail.com \
--cc=driverdev-devel@linuxdriverproject.org \
--cc=gregkh@linuxfoundation.org \
--cc=markh@compro.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.