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 /include/dt-bindings/sound | |
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 'include/dt-bindings/sound')
-rw-r--r-- | include/dt-bindings/sound/rt5651.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/dt-bindings/sound/rt5651.h b/include/dt-bindings/sound/rt5651.h new file mode 100644 index 000000000000..2f2dac915168 --- /dev/null +++ b/include/dt-bindings/sound/rt5651.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __DT_RT5651_H +#define __DT_RT5651_H + +#define RT5651_JD_NULL 0 +#define RT5651_JD1_1 1 +#define RT5651_JD1_2 2 +#define RT5651_JD2 3 + +#define RT5651_OVCD_SF_0P5 0 +#define RT5651_OVCD_SF_0P75 1 +#define RT5651_OVCD_SF_1P0 2 +#define RT5651_OVCD_SF_1P5 3 + +#endif /* __DT_RT5651_H */ |