summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5651.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2018-03-12 20:34:35 +0100
committerMark Brown <broonie@kernel.org>2018-03-12 14:15:51 -0700
commit0f2d4f162f4f54b431420df23122901a6ccd641e (patch)
tree614e4b2476ca23b77df00d736647cdbf0b7f94e2 /sound/soc/codecs/rt5651.h
parentee68096826fa16bca2f7bb555b3e0cbbe798d330 (diff)
downloadlinux-0f2d4f162f4f54b431420df23122901a6ccd641e.tar.bz2
ASoC: rt5651: move definitions of dt-binding constants to include/dt-bindings
Move the definitions of constants used in the dt-bindings from include/sound/rt5651.h to include/dt-bindings/sound/rt5651.h. As dt-bindings headers may also be parsed by the dt-compiler, they cannot use enums, only defines, so this commit also changes the code declaring the constants to use defines. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5651.h')
-rw-r--r--sound/soc/codecs/rt5651.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/rt5651.h b/sound/soc/codecs/rt5651.h
index f20c9be94fb2..3a0968c53fde 100644
--- a/sound/soc/codecs/rt5651.h
+++ b/sound/soc/codecs/rt5651.h
@@ -12,7 +12,7 @@
#ifndef __RT5651_H__
#define __RT5651_H__
-#include <sound/rt5651.h>
+#include <dt-bindings/sound/rt5651.h>
/* Info */
#define RT5651_RESET 0x00
@@ -2073,7 +2073,7 @@ struct rt5651_priv {
struct regmap *regmap;
struct snd_soc_jack *hp_jack;
struct work_struct jack_detect_work;
- enum rt5651_jd_src jd_src;
+ unsigned int jd_src;
unsigned int ovcd_th;
unsigned int ovcd_sf;