diff options
author | Alexandru Ardelean <alexandru.ardelean@analog.com> | 2020-10-19 13:53:13 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-10-26 18:37:03 +0000 |
commit | ab589bac553f79d559952aa088480a72258ac5bc (patch) | |
tree | 3b75a7f48087d166f630192af6b0efc82cc91930 /include/dt-bindings/sound/adi,adau1977.h | |
parent | 76b5f68bbf7df9343b69fbee04d5edf50680c231 (diff) | |
download | linux-stable-ab589bac553f79d559952aa088480a72258ac5bc.tar.gz linux-stable-ab589bac553f79d559952aa088480a72258ac5bc.tar.bz2 linux-stable-ab589bac553f79d559952aa088480a72258ac5bc.zip |
ASoC: adau1977: remove platform data and move micbias bindings include
The change removes the platform_data include/definition. It only contains
some values for the MICBIAS.
These are moved into 'dt-bindings/sound/adi,adau1977.h' so that they can be
used inside device-trees. When moving then, they need to be converted to
pre-compiler defines, so that the DT compiler can understand them.
The driver then, also needs to include the new
'dt-bindings/sound/adi,adau1977.h' file.
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20201019105313.24862-1-alexandru.ardelean@analog.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/dt-bindings/sound/adi,adau1977.h')
-rw-r--r-- | include/dt-bindings/sound/adi,adau1977.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/dt-bindings/sound/adi,adau1977.h b/include/dt-bindings/sound/adi,adau1977.h new file mode 100644 index 000000000000..8eebec6570f2 --- /dev/null +++ b/include/dt-bindings/sound/adi,adau1977.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +#ifndef __DT_BINDINGS_ADI_ADAU1977_H__ +#define __DT_BINDINGS_ADI_ADAU1977_H__ + +#define ADAU1977_MICBIAS_5V0 0x0 +#define ADAU1977_MICBIAS_5V5 0x1 +#define ADAU1977_MICBIAS_6V0 0x2 +#define ADAU1977_MICBIAS_6V5 0x3 +#define ADAU1977_MICBIAS_7V0 0x4 +#define ADAU1977_MICBIAS_7V5 0x5 +#define ADAU1977_MICBIAS_8V0 0x6 +#define ADAU1977_MICBIAS_8V5 0x7 +#define ADAU1977_MICBIAS_9V0 0x8 + +#endif /* __DT_BINDINGS_ADI_ADAU1977_H__ */ |