aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2014-01-25 15:48:31 -0500
committerMike Turquette <mturquette@linaro.org>2014-01-27 14:20:22 -0500
commit9d43dc7f403dbe5da25c7eb488a5975b08d95496 (patch)
treeed6f88dedda06a1a6d25ebbf5c75eea0e0a6e692 /include/linux/platform_data
parent8e31d19b93377e2e6ad67bc2e898186327cb0308 (diff)
clk: si5351: remove variant from platform_data
Commit 9807362bfe1748d9bb48eecb9261f1b1aaafea1c "clk: si5351: declare all device IDs for module loading" removed the common i2c_device_id and introduced new ones for each variant of the clock generator. Instead of exploiting that information in the driver, it still depends on platform_data passing the chips .variant. This removes the now redundant .variant from the platform_data and puts it in i2c_device_id's .driver_data instead. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/si5351.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/include/linux/platform_data/si5351.h b/include/linux/platform_data/si5351.h
index 54334393ab92..a947ab8b441a 100644
--- a/include/linux/platform_data/si5351.h
+++ b/include/linux/platform_data/si5351.h
@@ -8,20 +8,6 @@
8struct clk; 8struct clk;
9 9
10/** 10/**
11 * enum si5351_variant - SiLabs Si5351 chip variant
12 * @SI5351_VARIANT_A: Si5351A (8 output clocks, XTAL input)
13 * @SI5351_VARIANT_A3: Si5351A MSOP10 (3 output clocks, XTAL input)
14 * @SI5351_VARIANT_B: Si5351B (8 output clocks, XTAL/VXCO input)
15 * @SI5351_VARIANT_C: Si5351C (8 output clocks, XTAL/CLKIN input)
16 */
17enum si5351_variant {
18 SI5351_VARIANT_A = 1,
19 SI5351_VARIANT_A3 = 2,
20 SI5351_VARIANT_B = 3,
21 SI5351_VARIANT_C = 4,
22};
23
24/**
25 * enum si5351_pll_src - Si5351 pll clock source 11 * enum si5351_pll_src - Si5351 pll clock source
26 * @SI5351_PLL_SRC_DEFAULT: default, do not change eeprom config 12 * @SI5351_PLL_SRC_DEFAULT: default, do not change eeprom config
27 * @SI5351_PLL_SRC_XTAL: pll source clock is XTAL input 13 * @SI5351_PLL_SRC_XTAL: pll source clock is XTAL input
@@ -115,14 +101,12 @@ struct si5351_clkout_config {
115 101
116/** 102/**
117 * struct si5351_platform_data - Platform data for the Si5351 clock driver 103 * struct si5351_platform_data - Platform data for the Si5351 clock driver
118 * @variant: Si5351 chip variant
119 * @clk_xtal: xtal input clock 104 * @clk_xtal: xtal input clock
120 * @clk_clkin: clkin input clock 105 * @clk_clkin: clkin input clock
121 * @pll_src: array of pll source clock setting 106 * @pll_src: array of pll source clock setting
122 * @clkout: array of clkout configuration 107 * @clkout: array of clkout configuration
123 */ 108 */
124struct si5351_platform_data { 109struct si5351_platform_data {
125 enum si5351_variant variant;
126 struct clk *clk_xtal; 110 struct clk *clk_xtal;
127 struct clk *clk_clkin; 111 struct clk *clk_clkin;
128 enum si5351_pll_src pll_src[2]; 112 enum si5351_pll_src pll_src[2];