/* * wm8400.h -- audio driver for WM8400 * * Copyright 2008 Wolfson Microelectronics PLC. * Author: Mark Brown * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. * */ #ifndef _WM8400_CODEC_H #define _WM8400_CODEC_H #define WM8400_MCLK_DIV 0 #define WM8400_DACCLK_DIV 1 #define WM8400_ADCCLK_DIV 2 #define WM8400_BCLK_DIV 3 #define WM8400_MCLK_DIV_1 0x400 #define WM8400_MCLK_DIV_2 0x800 #define WM8400_DAC_CLKDIV_1 0x00 #define WM8400_DAC_CLKDIV_1_5 0x04 #define WM8400_DAC_CLKDIV_2 0x08 #define WM8400_DAC_CLKDIV_3 0x0c #define WM8400_DAC_CLKDIV_4 0x10 #define WM8400_DAC_CLKDIV_5_5 0x14 #define WM8400_DAC_CLKDIV_6 0x18 #define WM8400_ADC_CLKDIV_1 0x00 #define WM8400_ADC_CLKDIV_1_5 0x20 #define WM8400_ADC_CLKDIV_2 0x40 #define WM8400_ADC_CLKDIV_3 0x60 #define WM8400_ADC_CLKDIV_4 0x80 #define WM8400_ADC_CLKDIV_5_5 0xa0 #define WM8400_ADC_CLKDIV_6 0xc0 #define WM8400_BCLK_DIV_1 (0x0 << 1) #define WM8400_BCLK_DIV_1_5 (0x1 << 1) #define WM8400_BCLK_DIV_2 (0x2 << 1) #define WM8400_BCLK_DIV_3 (0x3 << 1) #define WM8400_BCLK_DIV_4 (0x4 << 1) #define WM8400_BCLK_DIV_5_5 (0x5 << 1) #define WM8400_BCLK_DIV_6 (0x6 << 1) #define WM8400_BCLK_DIV_8 (0x7 << 1) #define WM8400_BCLK_DIV_11 (0x8 << 1) #define WM8400_BCLK_DIV_12 (0x9 << 1) #define WM8400_BCLK_DIV_16 (0xA << 1) #define WM8400_BCLK_DIV_22 (0xB << 1) #define WM8400_BCLK_DIV_24 (0xC << 1) #define WM8400_BCLK_DIV_32 (0xD << 1) #define WM8400_BCLK_DIV_44 (0xE << 1) #define WM8400_BCLK_DIV_48 (0xF << 1) #endif x/net-next.git/diff/include?h=nds-private-remove&id=30103b5b6432a51c3822a26dc340e35d91237f39'>diff
path: root/include
diff options
context:
space:
mode:
authorDavid Lechner <david@lechnology.com>2016-12-04 16:52:31 -0600
committerMark Brown <broonie@kernel.org>2016-12-05 11:38:30 +0000
commit30103b5b6432a51c3822a26dc340e35d91237f39 (patch)
tree0806755f1615c0bc8598558b4a845ab1cf9c8291 /include
parent1b5b42216469b05ef4b5916cb40b127dfab1da88 (diff)
regulator: Fix regulator_get_error_flags() signature mismatch
The function signature of does not match regulator_get_error_flags() when CONFIG_REGULATOR is not defined vs. when it is not defined. This makes both declarations match to prevent compiler errors. Signed-off-by: David Lechner <david@lechnology.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')