]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00258357-5: mlb: Use circle buf macros to replace old ringbuf mechanism
authorTerry Lv <r65388@freescale.com>
Fri, 12 Apr 2013 07:44:46 +0000 (15:44 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:13:58 +0000 (14:13 +0200)
commit4855550b549f8fd780b4d6796c6b45c6a3fe1916
treeda2a9e27f87a157e9bc4958b209723f3f3319c3e
parentaaa3cc655be7e25284737020c4e7a7d101883ed7
ENGR00258357-5: mlb: Use circle buf macros to replace old ringbuf mechanism

Use circle buf to replace old ringbuf mechanism.
Change to use circle buffer in read, write, rx isr and tx isr functions.
In first design of MLB, it's using it's own mechanism to manage ring
buffer, like in mxc_mlb.c.
And then, I saw that kernel already had a serials of circ buffer macros
which can be used to manage ring buffers.
This patch is to use circle buffer macros to manage mlb internal ring
buffers.
For detail of circle buffers, you can refer to
linux-2.6-imx/Documentation/circular-buffers.txt.

Signed-off-by: Terry Lv <r65388@freescale.com>
drivers/mxc/mlb/mxc_mlb150.c
include/linux/mxc_mlb.h