diff options
author | Lucas Tanure <tanureal@opensource.cirrus.com> | 2021-12-17 14:57:00 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-12-31 16:21:01 +0300 |
commit | fe120d4cb6f6cd03007239e7c578b8703fe6d336 (patch) | |
tree | c03fa640cda3f2108d855b33d30f679ffe88bac0 /include/sound | |
parent | a87d42227cf5614fe0040ddd1fe642c54298b42c (diff) | |
download | linux-fe120d4cb6f6cd03007239e7c578b8703fe6d336.tar.xz |
ASoC: cs35l41: Move cs35l41_otp_unpack to shared code
ASoC and HDA will do the same cs35l41_otp_unpack, so move it
to shared code
Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20211217115708.882525-3-tanureal@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/cs35l41.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sound/cs35l41.h b/include/sound/cs35l41.h index aac3ffb9bc89..6cf3ef02b26a 100644 --- a/include/sound/cs35l41.h +++ b/include/sound/cs35l41.h @@ -534,7 +534,6 @@ #define CS35L41_MAX_CACHE_REG 36 #define CS35L41_OTP_SIZE_WORDS 32 #define CS35L41_NUM_OTP_ELEM 100 -#define CS35L41_NUM_OTP_MAPS 5 #define CS35L41_VALID_PDATA 0x80000000 #define CS35L41_NUM_SUPPLIES 2 @@ -760,8 +759,9 @@ struct cs35l41_otp_map_element_t { u32 word_offset; }; -extern const struct cs35l41_otp_map_element_t cs35l41_otp_map_map[CS35L41_NUM_OTP_MAPS]; extern struct regmap_config cs35l41_regmap_i2c; extern struct regmap_config cs35l41_regmap_spi; +int cs35l41_otp_unpack(struct device *dev, struct regmap *regmap); + #endif /* __CS35L41_H */ |