OSDN Git Service

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)
commit688d47cdd9344b1485eb28c2a7aa99743ed529a3
tree4cd24756aed57cb21c14343fb3cf51e82466dd2f
parent70585216fe7730d9fb5453d3e2804e149d0fe201
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