mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
kfifo: rename kfifo_put... into kfifo_in... and kfifo_get... into kfifo_out...
rename kfifo_put... into kfifo_in... to prevent miss use of old non in kernel-tree drivers ditto for kfifo_get... -> kfifo_out... Improve the prototypes of kfifo_in and kfifo_out to make the kerneldoc annotations more readable. Add mini "howto porting to the new API" in kfifo.h Signed-off-by: Stefani Seibold <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Acked-by: Mauro Carvalho Chehab <[email protected]> Acked-by: Andi Kleen <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
e64c026dd0
commit
7acd72eb85
15 changed files with 101 additions and 81 deletions
|
|
@ -510,14 +510,14 @@ static inline unsigned int cq_howmany(struct kfifo *kfifo)
|
|||
|
||||
static inline int cq_put(struct kfifo *kfifo, void *p)
|
||||
{
|
||||
return kfifo_put(kfifo, (void *)&p, sizeof(p));
|
||||
return kfifo_in(kfifo, (void *)&p, sizeof(p));
|
||||
}
|
||||
|
||||
static inline void *cq_get(struct kfifo *kfifo)
|
||||
{
|
||||
void *p = NULL;
|
||||
|
||||
kfifo_get(kfifo, (void *)&p, sizeof(p));
|
||||
kfifo_out(kfifo, (void *)&p, sizeof(p));
|
||||
return p;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -285,7 +285,7 @@ static int usb_serial_generic_write_start(struct usb_serial_port *port)
|
|||
return 0;
|
||||
|
||||
data = port->write_urb->transfer_buffer;
|
||||
count = kfifo_get_locked(port->write_fifo, data, port->bulk_out_size, &port->lock);
|
||||
count = kfifo_out_locked(port->write_fifo, data, port->bulk_out_size, &port->lock);
|
||||
usb_serial_debug_data(debug, &port->dev, __func__, count, data);
|
||||
|
||||
/* set up our urb */
|
||||
|
|
@ -345,7 +345,7 @@ int usb_serial_generic_write(struct tty_struct *tty,
|
|||
return usb_serial_multi_urb_write(tty, port,
|
||||
buf, count);
|
||||
|
||||
count = kfifo_put_locked(port->write_fifo, buf, count, &port->lock);
|
||||
count = kfifo_in_locked(port->write_fifo, buf, count, &port->lock);
|
||||
result = usb_serial_generic_write_start(port);
|
||||
|
||||
if (result >= 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue