mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 00:40:03 +00:00
media: am437x-vpfe: Make use of to_vpfe() to get a pointer to vpfe_device
This patch makes use of to_vpfe() to get a pointer to vpfe_device Signed-off-by: Lad Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
573a750813
commit
eac5727d27
1 changed files with 5 additions and 5 deletions
|
@ -325,7 +325,7 @@ static void vpfe_ccdc_restore_defaults(struct vpfe_ccdc *ccdc)
|
|||
|
||||
static int vpfe_ccdc_close(struct vpfe_ccdc *ccdc, struct device *dev)
|
||||
{
|
||||
struct vpfe_device *vpfe = container_of(ccdc, struct vpfe_device, ccdc);
|
||||
struct vpfe_device *vpfe = to_vpfe(ccdc);
|
||||
u32 dma_cntl, pcr;
|
||||
|
||||
pcr = vpfe_reg_read(ccdc, VPFE_PCR);
|
||||
|
@ -349,7 +349,7 @@ static int vpfe_ccdc_close(struct vpfe_ccdc *ccdc, struct device *dev)
|
|||
|
||||
static int vpfe_ccdc_set_params(struct vpfe_ccdc *ccdc, void __user *params)
|
||||
{
|
||||
struct vpfe_device *vpfe = container_of(ccdc, struct vpfe_device, ccdc);
|
||||
struct vpfe_device *vpfe = to_vpfe(ccdc);
|
||||
struct vpfe_ccdc_config_params_raw raw_params;
|
||||
int x;
|
||||
|
||||
|
@ -505,7 +505,7 @@ vpfe_ccdc_config_black_compense(struct vpfe_ccdc *ccdc,
|
|||
*/
|
||||
static void vpfe_ccdc_config_raw(struct vpfe_ccdc *ccdc)
|
||||
{
|
||||
struct vpfe_device *vpfe = container_of(ccdc, struct vpfe_device, ccdc);
|
||||
struct vpfe_device *vpfe = to_vpfe(ccdc);
|
||||
struct vpfe_ccdc_config_params_raw *config_params =
|
||||
&ccdc->ccdc_cfg.bayer.config_params;
|
||||
struct ccdc_params_raw *params = &ccdc->ccdc_cfg.bayer;
|
||||
|
@ -610,7 +610,7 @@ static inline enum ccdc_buftype vpfe_ccdc_get_buftype(struct vpfe_ccdc *ccdc)
|
|||
|
||||
static int vpfe_ccdc_set_pixel_format(struct vpfe_ccdc *ccdc, u32 pixfmt)
|
||||
{
|
||||
struct vpfe_device *vpfe = container_of(ccdc, struct vpfe_device, ccdc);
|
||||
struct vpfe_device *vpfe = to_vpfe(ccdc);
|
||||
|
||||
vpfe_dbg(1, vpfe, "%s: if_type: %d, pixfmt:%s\n",
|
||||
__func__, ccdc->ccdc_cfg.if_type, print_fourcc(pixfmt));
|
||||
|
@ -742,7 +742,7 @@ static inline void vpfe_set_sdr_addr(struct vpfe_ccdc *ccdc, unsigned long addr)
|
|||
static int vpfe_ccdc_set_hw_if_params(struct vpfe_ccdc *ccdc,
|
||||
struct vpfe_hw_if_param *params)
|
||||
{
|
||||
struct vpfe_device *vpfe = container_of(ccdc, struct vpfe_device, ccdc);
|
||||
struct vpfe_device *vpfe = to_vpfe(ccdc);
|
||||
|
||||
ccdc->ccdc_cfg.if_type = params->if_type;
|
||||
|
||||
|
|
Loading…
Reference in a new issue