OSDN Git Service

ASoC: samsung: i2s: Simplify pri_dai, sec_dai pointers usage
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 14 Feb 2019 09:37:44 +0000 (10:37 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 14 Feb 2019 14:38:54 +0000 (14:38 +0000)
commiteb540d3988d93d2b0231a5b36012aa0b3abaec81
tree321d7162933c1b36dddd74e99384e9adc656fcb9
parent1c3816a194870e7a6622345dab7fb56c7d708613
ASoC: samsung: i2s: Simplify pri_dai, sec_dai pointers usage

If the probe call is on the primary DAI we can use 'other' in place of
i2s->sec_dai, if the probe call is on the secondary DAI we can use 'i2s'
in place of other->sec_dai.

While at it fix one whitespace issue.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/i2s.c