]> asedeno.scripts.mit.edu Git - linux.git/commit
soc: qcom: smd: Represent channel layout in structures
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 2 Sep 2015 22:46:46 +0000 (15:46 -0700)
committerAndy Gross <agross@codeaurora.org>
Wed, 14 Oct 2015 19:51:20 +0000 (14:51 -0500)
commitf02dc82523a72619a10e24355c7b2f12c6814d52
tree10cb23429120a5d45237f219ae75b542a827ded1
parent9806884d8cd552e6926c162a022cc4b948f4abc8
soc: qcom: smd: Represent channel layout in structures

The rx and tx channel info are laid out in memory next to each
other, and there are two types of channel info structures, byte
based and word based. We have 4 pointers to these info
structures, when we really only need two to point to the
different types of structures. Encapsulate the byte based and
word based tx/rx structures in a "channel pair" structure that
describes the layout of memory and reduces the number of pointers
in the smd channel structure by two.

Reviewed-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Andy Gross <agross@codeaurora.org>
drivers/soc/qcom/smd.c