diff options
author | Hans de Goede <hdegoede@redhat.com> | 2018-03-12 20:34:35 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-03-12 22:15:51 +0100 |
commit | 0f2d4f162f4f54b431420df23122901a6ccd641e (patch) | |
tree | 614e4b2476ca23b77df00d736647cdbf0b7f94e2 /sound/soc/codecs/rt5651.h | |
parent | ASoC: rt5651: Rewrite jack-type detection (diff) | |
download | linux-0f2d4f162f4f54b431420df23122901a6ccd641e.tar.xz linux-0f2d4f162f4f54b431420df23122901a6ccd641e.zip |
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.h | 4 |
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; |