aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/nozomi.c
diff options
context:
space:
mode:
authorStefani Seibold <stefani@seibold.net>2009-12-21 17:37:28 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-22 17:17:56 -0500
commite64c026dd09b73faf20707711402fc5ed55a8e70 (patch)
tree4780736e021824f15329a0826eff3cc27d3f9646 /drivers/char/nozomi.c
parentc1e13f25674ed564948ecb7dfe5f83e578892896 (diff)
kfifo: cleanup namespace
change name of __kfifo_* functions to kfifo_*, because the prefix __kfifo should be reserved for internal functions only. Signed-off-by: Stefani Seibold <stefani@seibold.net> Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com> Acked-by: Andi Kleen <ak@linux.intel.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/nozomi.c')
-rw-r--r--drivers/char/nozomi.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/char/nozomi.c b/drivers/char/nozomi.c
index 935b30d80adf..61f5bfe74f38 100644
--- a/drivers/char/nozomi.c
+++ b/drivers/char/nozomi.c
@@ -798,7 +798,7 @@ static int send_data(enum port_type index, struct nozomi *dc)
798 struct tty_struct *tty = tty_port_tty_get(&port->port); 798 struct tty_struct *tty = tty_port_tty_get(&port->port);
799 799
800 /* Get data from tty and place in buf for now */ 800 /* Get data from tty and place in buf for now */
801 size = __kfifo_get(&port->fifo_ul, dc->send_buf, 801 size = kfifo_get(&port->fifo_ul, dc->send_buf,
802 ul_size < SEND_BUF_MAX ? ul_size : SEND_BUF_MAX); 802 ul_size < SEND_BUF_MAX ? ul_size : SEND_BUF_MAX);
803 803
804 if (size == 0) { 804 if (size == 0) {
@@ -988,11 +988,11 @@ static int receive_flow_control(struct nozomi *dc)
988 988
989 } else if (old_ctrl.CTS == 0 && ctrl_dl.CTS == 1) { 989 } else if (old_ctrl.CTS == 0 && ctrl_dl.CTS == 1) {
990 990
991 if (__kfifo_len(&dc->port[port].fifo_ul)) { 991 if (kfifo_len(&dc->port[port].fifo_ul)) {
992 DBG1("Enable interrupt (0x%04X) on port: %d", 992 DBG1("Enable interrupt (0x%04X) on port: %d",
993 enable_ier, port); 993 enable_ier, port);
994 DBG1("Data in buffer [%d], enable transmit! ", 994 DBG1("Data in buffer [%d], enable transmit! ",
995 __kfifo_len(&dc->port[port].fifo_ul)); 995 kfifo_len(&dc->port[port].fifo_ul));
996 enable_transmit_ul(port, dc); 996 enable_transmit_ul(port, dc);
997 } else { 997 } else {
998 DBG1("No data in buffer..."); 998 DBG1("No data in buffer...");
@@ -1672,7 +1672,7 @@ static int ntty_write(struct tty_struct *tty, const unsigned char *buffer,
1672 goto exit; 1672 goto exit;
1673 } 1673 }
1674 1674
1675 rval = __kfifo_put(&port->fifo_ul, (unsigned char *)buffer, count); 1675 rval = kfifo_put(&port->fifo_ul, (unsigned char *)buffer, count);
1676 1676
1677 /* notify card */ 1677 /* notify card */
1678 if (unlikely(dc == NULL)) { 1678 if (unlikely(dc == NULL)) {
@@ -1720,7 +1720,7 @@ static int ntty_write_room(struct tty_struct *tty)
1720 if (!port->port.count) 1720 if (!port->port.count)
1721 goto exit; 1721 goto exit;
1722 1722
1723 room = port->fifo_ul.size - __kfifo_len(&port->fifo_ul); 1723 room = port->fifo_ul.size - kfifo_len(&port->fifo_ul);
1724 1724
1725exit: 1725exit:
1726 mutex_unlock(&port->tty_sem); 1726 mutex_unlock(&port->tty_sem);
@@ -1877,7 +1877,7 @@ static s32 ntty_chars_in_buffer(struct tty_struct *tty)
1877 goto exit_in_buffer; 1877 goto exit_in_buffer;
1878 } 1878 }
1879 1879
1880 rval = __kfifo_len(&port->fifo_ul); 1880 rval = kfifo_len(&port->fifo_ul);
1881 1881
1882exit_in_buffer: 1882exit_in_buffer:
1883 return rval; 1883 return rval;