Commit 5ad58667 authored by Robert Foss's avatar Robert Foss Committed by Mauro Carvalho Chehab

media: camss: vfe: Remove vfe_hw_version_read() argument

The device argument is not needed, since it is accessible through
the vfe_device argument already.
Signed-off-by: default avatarRobert Foss <robert.foss@linaro.org>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 2fa698e3
...@@ -177,7 +177,7 @@ ...@@ -177,7 +177,7 @@
#define VFE_BUS_WM_FRAME_INC(n) (0x2258 + (n) * 0x100) #define VFE_BUS_WM_FRAME_INC(n) (0x2258 + (n) * 0x100)
#define VFE_BUS_WM_BURST_LIMIT(n) (0x225c + (n) * 0x100) #define VFE_BUS_WM_BURST_LIMIT(n) (0x225c + (n) * 0x100)
static void vfe_hw_version_read(struct vfe_device *vfe, struct device *dev) static void vfe_hw_version_read(struct vfe_device *vfe)
{ {
u32 hw_version = readl_relaxed(vfe->base + VFE_HW_VERSION); u32 hw_version = readl_relaxed(vfe->base + VFE_HW_VERSION);
...@@ -185,7 +185,8 @@ static void vfe_hw_version_read(struct vfe_device *vfe, struct device *dev) ...@@ -185,7 +185,8 @@ static void vfe_hw_version_read(struct vfe_device *vfe, struct device *dev)
u32 rev = (hw_version >> 16) & 0xFFF; u32 rev = (hw_version >> 16) & 0xFFF;
u32 step = hw_version & 0xFFFF; u32 step = hw_version & 0xFFFF;
dev_dbg(dev, "VFE HW Version = %u.%u.%u\n", gen, rev, step); dev_dbg(vfe->camss->dev, "VFE HW Version = %u.%u.%u\n",
gen, rev, step);
} }
static inline void vfe_reg_clr(struct vfe_device *vfe, u32 reg, u32 clr_bits) static inline void vfe_reg_clr(struct vfe_device *vfe, u32 reg, u32 clr_bits)
......
...@@ -210,11 +210,11 @@ ...@@ -210,11 +210,11 @@
#define MSM_VFE_VFE0_UB_SIZE 1023 #define MSM_VFE_VFE0_UB_SIZE 1023
#define MSM_VFE_VFE0_UB_SIZE_RDI (MSM_VFE_VFE0_UB_SIZE / 3) #define MSM_VFE_VFE0_UB_SIZE_RDI (MSM_VFE_VFE0_UB_SIZE / 3)
static void vfe_hw_version_read(struct vfe_device *vfe, struct device *dev) static void vfe_hw_version_read(struct vfe_device *vfe)
{ {
u32 hw_version = readl_relaxed(vfe->base + VFE_0_HW_VERSION); u32 hw_version = readl_relaxed(vfe->base + VFE_0_HW_VERSION);
dev_dbg(dev, "VFE HW Version = 0x%08x\n", hw_version); dev_dbg(vfe->camss->dev, "VFE HW Version = 0x%08x\n", hw_version);
} }
static u16 vfe_get_ub_size(u8 vfe_id) static u16 vfe_get_ub_size(u8 vfe_id)
......
...@@ -254,11 +254,11 @@ ...@@ -254,11 +254,11 @@
#define MSM_VFE_VFE1_UB_SIZE 1535 #define MSM_VFE_VFE1_UB_SIZE 1535
#define MSM_VFE_VFE1_UB_SIZE_RDI (MSM_VFE_VFE1_UB_SIZE / 3) #define MSM_VFE_VFE1_UB_SIZE_RDI (MSM_VFE_VFE1_UB_SIZE / 3)
static void vfe_hw_version_read(struct vfe_device *vfe, struct device *dev) static void vfe_hw_version_read(struct vfe_device *vfe)
{ {
u32 hw_version = readl_relaxed(vfe->base + VFE_0_HW_VERSION); u32 hw_version = readl_relaxed(vfe->base + VFE_0_HW_VERSION);
dev_dbg(dev, "VFE HW Version = 0x%08x\n", hw_version); dev_dbg(vfe->camss->dev, "VFE HW Version = 0x%08x\n", hw_version);
} }
static u16 vfe_get_ub_size(u8 vfe_id) static u16 vfe_get_ub_size(u8 vfe_id)
......
...@@ -247,11 +247,11 @@ ...@@ -247,11 +247,11 @@
#define MSM_VFE_VFE1_UB_SIZE 1535 #define MSM_VFE_VFE1_UB_SIZE 1535
#define MSM_VFE_VFE1_UB_SIZE_RDI (MSM_VFE_VFE1_UB_SIZE / 3) #define MSM_VFE_VFE1_UB_SIZE_RDI (MSM_VFE_VFE1_UB_SIZE / 3)
static void vfe_hw_version_read(struct vfe_device *vfe, struct device *dev) static void vfe_hw_version_read(struct vfe_device *vfe)
{ {
u32 hw_version = readl_relaxed(vfe->base + VFE_0_HW_VERSION); u32 hw_version = readl_relaxed(vfe->base + VFE_0_HW_VERSION);
dev_dbg(dev, "VFE HW Version = 0x%08x\n", hw_version); dev_dbg(vfe->camss->dev, "VFE HW Version = 0x%08x\n", hw_version);
} }
static inline void vfe_reg_clr(struct vfe_device *vfe, u32 reg, u32 clr_bits) static inline void vfe_reg_clr(struct vfe_device *vfe, u32 reg, u32 clr_bits)
......
...@@ -1299,7 +1299,7 @@ int msm_vfe_subdev_init(struct camss *camss, struct vfe_device *vfe, ...@@ -1299,7 +1299,7 @@ int msm_vfe_subdev_init(struct camss *camss, struct vfe_device *vfe,
return -EINVAL; return -EINVAL;
} }
vfe->ops->subdev_init(dev, vfe); vfe->ops->subdev_init(dev, vfe);
vfe->ops->hw_version_read(vfe, dev); vfe->ops->hw_version_read(vfe);
/* Memory */ /* Memory */
......
...@@ -103,7 +103,7 @@ struct vfe_device; ...@@ -103,7 +103,7 @@ struct vfe_device;
struct vfe_hw_ops { struct vfe_hw_ops {
void (*enable_irq_common)(struct vfe_device *vfe); void (*enable_irq_common)(struct vfe_device *vfe);
void (*global_reset)(struct vfe_device *vfe); void (*global_reset)(struct vfe_device *vfe);
void (*hw_version_read)(struct vfe_device *vfe, struct device *dev); void (*hw_version_read)(struct vfe_device *vfe);
irqreturn_t (*isr)(int irq, void *dev); irqreturn_t (*isr)(int irq, void *dev);
void (*isr_read)(struct vfe_device *vfe, u32 *value0, u32 *value1); void (*isr_read)(struct vfe_device *vfe, u32 *value0, u32 *value1);
void (*pm_domain_off)(struct vfe_device *vfe); void (*pm_domain_off)(struct vfe_device *vfe);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment