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>
This commit is contained in:
Hans de Goede
2018-03-12 20:34:35 +01:00
committed by Mark Brown
szülő ee68096826
commit 0f2d4f162f
3 fájl változott, egészen pontosan 17 új sor hozzáadva és 38 régi sor törölve

Fájl megtekintése

@@ -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;