]> 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)
commit43e8331ee0ddb727d8000fc27eb655c32581ccb5
tree4cd24756aed57cb21c14343fb3cf51e82466dd2f
parent9141e93592cd2c9c173162df0e354e4bfaf9c455
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