]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tty/serial: atmel: add comment for the ring buffer size macro
authorLudovic Desroches <ludovic.desroches@atmel.com>
Fri, 17 Jun 2016 10:05:48 +0000 (12:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2016 20:38:37 +0000 (13:38 -0700)
commit637ba54f6051903e1f0011b75ee36b2a29696c6d
tree5460e5b33bcb0c76f0cce88c798b6070c3068edd
parent00e8e65870cc581a0a8496e95480ea1b39aec58b
tty/serial: atmel: add comment for the ring buffer size macro

There is a macro named ATMEL_SERIAL_RINGSIZE which suggesting that it
corresponds to the real size of the ring buffer. Let warn people that
there is a factor of four since allocation size is
sizeof(struct atmel_uart_char) * ATMEL_SERIAL_RINGSIZE.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c