media: v4l2-subdev: add subdev-wide state struct
[linux-2.6-microblaze.git] / drivers / staging / media / imx / imx-media-utils.c
index 5128915..6f90acf 100644 (file)
@@ -429,7 +429,7 @@ EXPORT_SYMBOL_GPL(imx_media_init_mbus_fmt);
  * of a subdev. Can be used as the .init_cfg pad operation.
  */
 int imx_media_init_cfg(struct v4l2_subdev *sd,
-                      struct v4l2_subdev_pad_config *cfg)
+                      struct v4l2_subdev_state *sd_state)
 {
        struct v4l2_mbus_framefmt *mf_try;
        struct v4l2_subdev_format format;
@@ -445,7 +445,7 @@ int imx_media_init_cfg(struct v4l2_subdev *sd,
                if (ret)
                        continue;
 
-               mf_try = v4l2_subdev_get_try_format(sd, cfg, pad);
+               mf_try = v4l2_subdev_get_try_format(sd, sd_state, pad);
                *mf_try = format.format;
        }