]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tlv320aic32x4: add type to device private data struct
authorClaudius Heine <ch@denx.de>
Thu, 17 Jun 2021 08:52:28 +0000 (10:52 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 23 Jun 2021 10:49:34 +0000 (11:49 +0100)
commit177b2a84884b834bc2572e8ac2a8b8bee02ccee4
tree4cd24756aed57cb21c14343fb3cf51e82466dd2f
parentb8a2752af5aa9e05259544442020f23914f77d3b
ASoC: tlv320aic32x4: add type to device private data struct

While this driver can already handle different device variants, the
variant information cannot be used in the driver code and therefor
cannot have different code paths depending on the device variant.

This change adds a `type` value into the `aic32x4_priv` structure, that
contains a device variant identifier, which was set when the driver was
bound to the device.

Signed-off-by: Claudius Heine <ch@denx.de>
Link: https://lore.kernel.org/r/20210617085230.1851503-2-ch@denx.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tlv320aic32x4-i2c.c
sound/soc/codecs/tlv320aic32x4-spi.c
sound/soc/codecs/tlv320aic32x4.c
sound/soc/codecs/tlv320aic32x4.h