treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / media / i2c / aptina-pll.h
blob54c0e185a94ce0d0645995b00e8ae146815255ef
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Aptina Sensor PLL Configuration
5 * Copyright (C) 2012 Laurent Pinchart <laurent.pinchart@ideasonboard.com>
6 */
8 #ifndef __APTINA_PLL_H
9 #define __APTINA_PLL_H
11 struct aptina_pll {
12 unsigned int ext_clock;
13 unsigned int pix_clock;
15 unsigned int n;
16 unsigned int m;
17 unsigned int p1;
20 struct aptina_pll_limits {
21 unsigned int ext_clock_min;
22 unsigned int ext_clock_max;
23 unsigned int int_clock_min;
24 unsigned int int_clock_max;
25 unsigned int out_clock_min;
26 unsigned int out_clock_max;
27 unsigned int pix_clock_max;
29 unsigned int n_min;
30 unsigned int n_max;
31 unsigned int m_min;
32 unsigned int m_max;
33 unsigned int p1_min;
34 unsigned int p1_max;
37 struct device;
39 int aptina_pll_calculate(struct device *dev,
40 const struct aptina_pll_limits *limits,
41 struct aptina_pll *pll);
43 #endif /* __APTINA_PLL_H */