diff options
author | Claudius Heine <ch@denx.de> | 2021-06-17 10:52:28 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-06-23 12:49:34 +0200 |
commit | 688d47cdd9344b1485eb28c2a7aa99743ed529a3 (patch) | |
tree | 4cd24756aed57cb21c14343fb3cf51e82466dd2f /sound/soc/codecs/tlv320aic32x4.h | |
parent | Merge branch 'akpm' (patches from Andrew) (diff) | |
download | linux-688d47cdd9344b1485eb28c2a7aa99743ed529a3.tar.xz linux-688d47cdd9344b1485eb28c2a7aa99743ed529a3.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | sound/soc/codecs/tlv320aic32x4.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/tlv320aic32x4.h b/sound/soc/codecs/tlv320aic32x4.h index 7550122e9f8a..8a18dbec76a6 100644 --- a/sound/soc/codecs/tlv320aic32x4.h +++ b/sound/soc/codecs/tlv320aic32x4.h @@ -10,6 +10,11 @@ struct device; struct regmap_config; +enum aic32x4_type { + AIC32X4_TYPE_AIC32X4 = 0, + AIC32X4_TYPE_AIC32X6, +}; + extern const struct regmap_config aic32x4_regmap_config; int aic32x4_probe(struct device *dev, struct regmap *regmap); int aic32x4_remove(struct device *dev); |