summaryrefslogtreecommitdiff
path: root/drivers/media/i2c/ccs/ccs.h
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2020-02-11 22:41:39 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-12-03 10:46:40 +0100
commit7b1dd0f85013c33d5eba1f69503bf29c8e17131e (patch)
tree85fa30e240e1d90d8c87b49f7eef0d17433f56df /drivers/media/i2c/ccs/ccs.h
parent5323aaf19e6c0e184edb23eb70cfe5da38f2c1fb (diff)
downloadlinux-next-7b1dd0f85013c33d5eba1f69503bf29c8e17131e.tar.gz
media: ccs: Make hwcfg part of the device specific struct
There's no need to allocate the hardware configuration struct separately. Put it in struct ccs_sensor. 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/ccs.h')
-rw-r--r--drivers/media/i2c/ccs/ccs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/ccs/ccs.h b/drivers/media/i2c/ccs/ccs.h
index bfe39e02f5e9..2d1e8339f663 100644
--- a/drivers/media/i2c/ccs/ccs.h
+++ b/drivers/media/i2c/ccs/ccs.h
@@ -215,7 +215,7 @@ struct ccs_sensor {
struct ccs_subdev *binner;
struct ccs_subdev *scaler;
struct ccs_subdev *pixel_array;
- struct ccs_hwconfig *hwcfg;
+ struct ccs_hwconfig hwcfg;
struct regulator *vana;
struct clk *ext_clk;
struct gpio_desc *xshutdown;