diff mbox series

[1/5] SOC Codecs: TLV320AIC3X add SPI: move thinks to header file

Message ID 20210406105018.59463-2-jiri.prchal@aksignal.cz (mailing list archive)
State New
Headers show
Series SOC Codecs: TLV320AIC3X add SPI support | expand

Commit Message

Jiri Prchal April 6, 2021, 10:50 a.m. UTC
Move shered definitions and defines to header file.

Signed-off-by: Jiri Prchal <jiri.prchal@aksignal.cz>
---
 sound/soc/codecs/tlv320aic3x.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Mark Brown April 6, 2021, noon UTC | #1
On Tue, Apr 06, 2021 at 12:50:14PM +0200, Jiri Prchal wrote:
> Move shered definitions and defines to header file.
> 
> Signed-off-by: Jiri Prchal <jiri.prchal@aksignal.cz>
> ---
>  sound/soc/codecs/tlv320aic3x.h | 13 +++++++++++++
>  1 file changed, 13 insertions(+)

This isn't moving things, this is copying the definitions into the
header file without removing the original copies.  There's also typos in
the subject and commit log.
diff mbox series

Patch

diff --git a/sound/soc/codecs/tlv320aic3x.h b/sound/soc/codecs/tlv320aic3x.h
index 66d3580cf2b1..5d2195f009a9 100644
--- a/sound/soc/codecs/tlv320aic3x.h
+++ b/sound/soc/codecs/tlv320aic3x.h
@@ -9,6 +9,19 @@ 
 #ifndef _AIC3X_H
 #define _AIC3X_H
 
+struct device;
+struct regmap_config;
+
+extern const struct regmap_config aic3x_regmap_config;
+int aic3x_probe(struct device *dev, struct regmap *regmap, kernel_ulong_t driver_data);
+int aic3x_remove(struct device *dev);
+
+#define AIC3X_MODEL_3X 0
+#define AIC3X_MODEL_33 1
+#define AIC3X_MODEL_3007 2
+#define AIC3X_MODEL_3104 3
+#define AIC3X_MODEL_3106 4
+
 /* AIC3X register space */
 #define AIC3X_CACHEREGNUM		110