Simplify the ring buffer handling with the in-place API.
Also avoid the dynamic allocation and the memory leak in the channel
callback function.
Signed-off-by: Dexuan Cui <[email protected]>
Acked-by: Dmitry Torokhov <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>