diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2014-04-08 17:18:10 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-04-23 10:30:32 -0400 |
commit | 03efb2a067beaea0496bd6e411452ca90dab9d01 (patch) | |
tree | 49fcb2f6abf222f919508b2678917ebf1a4628a8 /drivers/media/i2c/smiapp/smiapp-quirk.c | |
parent | 19e9f5f5391b41b684ddbd3066cd87509fdc2fd3 (diff) |
[media] smiapp: Make PLL (quirk) flags a function
This is more flexible. Quirk flags may be affected by configuration.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/i2c/smiapp/smiapp-quirk.c')
-rw-r--r-- | drivers/media/i2c/smiapp/smiapp-quirk.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/media/i2c/smiapp/smiapp-quirk.c b/drivers/media/i2c/smiapp/smiapp-quirk.c index bd2f8a7f1926..e0bee8752122 100644 --- a/drivers/media/i2c/smiapp/smiapp-quirk.c +++ b/drivers/media/i2c/smiapp/smiapp-quirk.c | |||
@@ -220,12 +220,17 @@ static int jt8ev1_post_streamoff(struct smiapp_sensor *sensor) | |||
220 | return smiapp_write_8(sensor, 0x3328, 0x80); | 220 | return smiapp_write_8(sensor, 0x3328, 0x80); |
221 | } | 221 | } |
222 | 222 | ||
223 | static unsigned long jt8ev1_pll_flags(struct smiapp_sensor *sensor) | ||
224 | { | ||
225 | return SMIAPP_PLL_FLAG_OP_PIX_CLOCK_PER_LANE; | ||
226 | } | ||
227 | |||
223 | const struct smiapp_quirk smiapp_jt8ev1_quirk = { | 228 | const struct smiapp_quirk smiapp_jt8ev1_quirk = { |
224 | .limits = jt8ev1_limits, | 229 | .limits = jt8ev1_limits, |
225 | .post_poweron = jt8ev1_post_poweron, | 230 | .post_poweron = jt8ev1_post_poweron, |
226 | .pre_streamon = jt8ev1_pre_streamon, | 231 | .pre_streamon = jt8ev1_pre_streamon, |
227 | .post_streamoff = jt8ev1_post_streamoff, | 232 | .post_streamoff = jt8ev1_post_streamoff, |
228 | .pll_flags = SMIAPP_PLL_FLAG_OP_PIX_CLOCK_PER_LANE, | 233 | .pll_flags = jt8ev1_pll_flags, |
229 | }; | 234 | }; |
230 | 235 | ||
231 | static int tcm8500md_limits(struct smiapp_sensor *sensor) | 236 | static int tcm8500md_limits(struct smiapp_sensor *sensor) |