summaryrefslogtreecommitdiff
path: root/drivers/media/platform/marvell-ccic/cafe-driver.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-11-22 12:07:24 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-11-29 12:15:04 +0300
commit5f73dcec407612eb308699a5d8182d70916210b0 (patch)
tree781df3d147fa0b0a7a89b88dcc3e1621fe6a3d11 /drivers/media/platform/marvell-ccic/cafe-driver.c
parent0338d9c2ffc61b3a70d42e469dfba95f88b6a7f9 (diff)
downloadlinux-5f73dcec407612eb308699a5d8182d70916210b0.tar.xz
media: marvell-ccic: drop to_cam() unused function
This function is an alias for container_of() that it is currently not used, causing clang warnings. So, drop it. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/platform/marvell-ccic/cafe-driver.c')
-rw-r--r--drivers/media/platform/marvell-ccic/cafe-driver.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/media/platform/marvell-ccic/cafe-driver.c b/drivers/media/platform/marvell-ccic/cafe-driver.c
index b61b9d9551af..03dcf8bf705e 100644
--- a/drivers/media/platform/marvell-ccic/cafe-driver.c
+++ b/drivers/media/platform/marvell-ccic/cafe-driver.c
@@ -139,13 +139,6 @@ struct cafe_camera {
*/
#define CAFE_SMBUS_TIMEOUT (HZ) /* generous */
-static inline struct cafe_camera *to_cam(struct v4l2_device *dev)
-{
- struct mcam_camera *m = container_of(dev, struct mcam_camera, v4l2_dev);
- return container_of(m, struct cafe_camera, mcam);
-}
-
-
static int cafe_smbus_write_done(struct mcam_camera *mcam)
{
unsigned long flags;