examples/tty/serial.c
changeset 1787 439f186185be
parent 1785 9ed0334edaf9
child 1788 af61953c3ba4
--- a/examples/tty/serial.c	Mon Jan 25 16:15:56 2010 +0100
+++ b/examples/tty/serial.c	Mon Jan 25 17:42:07 2010 +0100
@@ -376,6 +376,12 @@
 
 /****************************************************************************/
 
+static ec_tty_operations_t el60xx_tty_ops = {
+    .cflag_changed = el60xx_cflag_changed,
+};
+
+/****************************************************************************/
+
 int el60xx_port_init(el60xx_port_t *port, ec_slave_config_t *sc,
         ec_domain_t *domain, unsigned int slot_offset, const char *name)
 {
@@ -383,7 +389,7 @@
 
     strncpy(port->name, name, EL6002_PORT_NAME_SIZE);
 
-    port->tty = ectty_create(el60xx_cflag_changed, port);
+    port->tty = ectty_create(&el60xx_tty_ops, port);
     if (IS_ERR(port->tty)) {
         printk(KERN_ERR PFX "Failed to create tty for %s.\n",
                 port->name);