]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
media: tegra_v4l2: add i2c_camera_ctrl struct
authorBryan Wu <pengw@nvidia.com>
Thu, 30 May 2013 22:35:59 +0000 (15:35 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:38:52 +0000 (13:38 -0700)
I2C devices should be dynamically created/removed by VI driver. This
is required by making VI/CSI and V4L2 drivers as modules.

Bug 1240806

Change-Id: Ia0218ecaab18cc3df27047663177291ccdd2cc15
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/246264
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
include/media/tegra_v4l2_camera.h

index 09d6a146c8970ffeada0bc8bc767a9a0e19d2216..9e4b65c362b3e6445eb060d891de2ec8cf9a0948 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012, NVIDIA CORPORATION.  All rights reserved.
+ * Copyright (c) 2012-2013, NVIDIA CORPORATION.  All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms and conditions of the GNU General Public License,
@@ -36,4 +36,8 @@ struct tegra_camera_platform_data {
        bool                    continuous_clk; /* For CSI port only */
 };
 
+struct i2c_camera_ctrl {
+       int     (*new_devices)(struct platform_device *pdev);
+       void    (*remove_devices)(struct platform_device *pdev);
+};
 #endif /* _TEGRA_CAMERA_H_ */