Re: [PATCH] iuu_phoenix new driver proposal 2

Oliver Neukum <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Am Mittwoch 18 Juli 2007 schrieb Alain Degreffe:


+static int iuu_tiocmget(struct usb_serial_port *port, struct file *file)
+{
+	u8 *st;
+	int status ;
+	st = kmalloc(sizeof(u8), GFP_KERNEL);
+	if (!st)
+		return -ENOMEM ;
+	iuu_status(port, st);
+
+	dbg("%s (%d) msg ", __FUNCTION__, port->number);
+	if (st[0] & IUU_FULLCARD_IN) {
+		dbg("%s  card present ! value returned %i ", __FUNCTION__,
+		    TIOCM_CD);
+		status = 0 ;
+	} else {
+		status TIOCM_CD;

Could you make the code compileable and resubmit it?

	Regards
		Oliver


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.