Skip to content

Commit

Permalink
media: ccs: Small definition cleanup
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
Sakari Ailus authored and mchehab committed Jan 12, 2021
1 parent ca59318 commit 38cfa52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/media/i2c/ccs/ccs-data.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 2 additions & 0 deletions drivers/media/i2c/ccs/ccs-data.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

#include <linux/types.h>

struct device;

/**
* struct ccs_data_block_version - CCS static data version
* @version_major: Major version number
Expand Down

0 comments on commit 38cfa52

Please sign in to comment.