aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo+renesas@jmondi.org>2018-03-12 09:43:03 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-03-21 15:29:07 -0400
commit6a26f141bf6200a1b3537c24bd4a8d37f23fbe57 (patch)
treeea939ecba156da6d2fdf4d3a0bcd5920e132eb01 /include/media
parent7641b04421954ea092b8fa7edbf904c3852875b5 (diff)
media: i2c: mt9t112: Remove soc_camera dependencies
Remove soc_camera framework dependencies from mt9t112 sensor driver. - Handle clk, gpios and power routines - Register async subdev - Remove deprecated g/s_mbus_config operations - Remove driver flags - Change driver interface and add kernel doc - Adjust build system - Fix code style issues reported by checkpatch in strict mode This commit does not remove the original soc_camera based driver as long as other platforms depends on soc_camera framework. As I don't have access to a working camera module, this change has only been compile tested. Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/i2c/mt9t112.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/include/media/i2c/mt9t112.h b/include/media/i2c/mt9t112.h
index a43c74ab05ec..cc80d5cc2104 100644
--- a/include/media/i2c/mt9t112.h
+++ b/include/media/i2c/mt9t112.h
@@ -1,28 +1,25 @@
1/* SPDX-License-Identifier: GPL-2.0 */
1/* mt9t112 Camera 2/* mt9t112 Camera
2 * 3 *
3 * Copyright (C) 2009 Renesas Solutions Corp. 4 * Copyright (C) 2009 Renesas Solutions Corp.
4 * Kuninori Morimoto <morimoto.kuninori@renesas.com> 5 * Kuninori Morimoto <morimoto.kuninori@renesas.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */ 6 */
10 7
11#ifndef __MT9T112_H__ 8#ifndef __MT9T112_H__
12#define __MT9T112_H__ 9#define __MT9T112_H__
13 10
14#define MT9T112_FLAG_PCLK_RISING_EDGE (1 << 0)
15#define MT9T112_FLAG_DATAWIDTH_8 (1 << 1) /* default width is 10 */
16
17struct mt9t112_pll_divider { 11struct mt9t112_pll_divider {
18 u8 m, n; 12 u8 m, n;
19 u8 p1, p2, p3, p4, p5, p6, p7; 13 u8 p1, p2, p3, p4, p5, p6, p7;
20}; 14};
21 15
22/* 16/**
23 * mt9t112 camera info 17 * mt9t112_platform_data - mt9t112 driver interface
18 * @flags: Sensor media bus configuration.
19 * @divider: Sensor PLL configuration
24 */ 20 */
25struct mt9t112_camera_info { 21struct mt9t112_platform_data {
22#define MT9T112_FLAG_PCLK_RISING_EDGE BIT(0)
26 u32 flags; 23 u32 flags;
27 struct mt9t112_pll_divider divider; 24 struct mt9t112_pll_divider divider;
28}; 25};