diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2021-04-01 11:24:54 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-04-06 06:53:59 +0200 |
commit | 9916c02ccd74e672b62dd1a9017ac2f237ebf512 (patch) | |
tree | d10be825c090603cc30d62ac92cc0ada5eaa27f8 /.cocciconfig | |
parent | soundwire: qcom: wait for fifo space to be available before read/write (diff) | |
download | linux-9916c02ccd74e672b62dd1a9017ac2f237ebf512.tar.xz linux-9916c02ccd74e672b62dd1a9017ac2f237ebf512.zip |
soundwire: qcom: cleanup internal port config indexing
Internally used portconfig array for storing port bandwidth
params starts from offset zero. However port zero is not really
used and we also copy the bus parameters to offset zero.
So basically we endup with a code which has to subtract 1 from port
number to get to port parameters.
This is bit confusing to the reader so, make this bit more obvious by only
copying the parameters to offset 1 instead of zero. This will avoid doing
-1 every time when we try to get port params.
Similar thing has been recently done with din/dout_port_mask.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20210401092454.21299-1-srinivas.kandagatla@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions