summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/ccs
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2020-12-11 12:30:09 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-01-12 17:57:08 +0100
commit38cfa52c4e879afead89a56d32a8c59326f13607 (patch)
tree0d7332e0c30f364ccf8c536490146ee49aa421c0 /drivers/media/i2c/ccs
parentmedia: Revert "media: ccs-pll: Fix MODULE_LICENSE" (diff)
downloadlinux-38cfa52c4e879afead89a56d32a8c59326f13607.tar.xz
linux-38cfa52c4e879afead89a56d32a8c59326f13607.zip
media: ccs: Small definition cleanup
struct device is used in ccs-data.h but no definition is included. Add a forward definition. Also ccs-data.c includes linux/types.h but this is already included in ccs-data.h which ccs-data.c includes. Do don't include linux/types.h in ccs-data.c. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/i2c/ccs')
-rw-r--r--drivers/media/i2c/ccs/ccs-data.c1
-rw-r--r--drivers/media/i2c/ccs/ccs-data.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/i2c/ccs/ccs-data.c b/drivers/media/i2c/ccs/ccs-data.c
index 9a6097b088bd..59338a6704af 100644
--- a/drivers/media/i2c/ccs/ccs-data.c
+++ b/drivers/media/i2c/ccs/ccs-data.c
@@ -10,7 +10,6 @@
#include <linux/limits.h>
#include <linux/mm.h>
#include <linux/slab.h>
-#include <linux/types.h>
#include "ccs-data-defs.h"
diff --git a/drivers/media/i2c/ccs/ccs-data.h b/drivers/media/i2c/ccs/ccs-data.h
index 50d6508b24f3..c75d480c8792 100644
--- a/drivers/media/i2c/ccs/ccs-data.h
+++ b/drivers/media/i2c/ccs/ccs-data.h
@@ -10,6 +10,8 @@
#include <linux/types.h>
+struct device;
+
/**
* struct ccs_data_block_version - CCS static data version
* @version_major: Major version number