]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ASoC: soc-card: move snd_soc_card_set/get_drvdata() to soc-card
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 28 May 2020 01:48:11 +0000 (10:48 +0900)
committerMark Brown <broonie@kernel.org>
Sat, 30 May 2020 01:11:29 +0000 (02:11 +0100)
Card related function should be implemented at soc-card now.
This patch moves it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/877dww25k4.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-card.h
include/sound/soc.h

index 775c08d056aeb70ff66287f221de7995522e5014..e60ad39b87bded6841470dc298d99be4ec0aa4a5 100644 (file)
@@ -14,4 +14,16 @@ int snd_soc_card_jack_new(struct snd_soc_card *card, const char *id, int type,
                          struct snd_soc_jack *jack,
                          struct snd_soc_jack_pin *pins, unsigned int num_pins);
 
+/* device driver data */
+static inline void snd_soc_card_set_drvdata(struct snd_soc_card *card,
+                                           void *data)
+{
+       card->drvdata = data;
+}
+
+static inline void *snd_soc_card_get_drvdata(struct snd_soc_card *card)
+{
+       return card->drvdata;
+}
+
 #endif /* __SOC_CARD_H */
index 38b21e815a28feb2dc788c56c6a6d5326e570fd9..3072298e756a7615432b4e01aa5b1ba4358e8ab8 100644 (file)
@@ -1260,19 +1260,6 @@ struct soc_enum {
 #endif
 };
 
-/* device driver data */
-
-static inline void snd_soc_card_set_drvdata(struct snd_soc_card *card,
-               void *data)
-{
-       card->drvdata = data;
-}
-
-static inline void *snd_soc_card_get_drvdata(struct snd_soc_card *card)
-{
-       return card->drvdata;
-}
-
 static inline bool snd_soc_volsw_is_stereo(struct soc_mixer_control *mc)
 {
        if (mc->reg == mc->rreg && mc->shift == mc->rshift)