Hi Sakari,

On 18-09-19 13:45, Sakari Ailus wrote:
> Hi Marco,
> 
> On Tue, Sep 18, 2018 at 03:14:50PM +0200, Marco Felsch wrote:
> > These helpers make us of the media-controller entity which is only
> > available if the CONFIG_MEDIA_CONTROLLER is enabled.
> > 
> > Signed-off-by: Marco Felsch <m.fel...@pengutronix.de>
> > ---
> > Changelog:
> > 
> > v3:
> > - add CONFIG_MEDIA_CONTROLLER switch instead of moving the
> >   v4l2_subdev_get_try_* APIs into the existing one.
> > 
> > v2:
> > - Initial commit
> > 
> >  include/media/v4l2-subdev.h | 4 ++++
> >  1 file changed, 4 insertions(+)
> > 
> > diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h
> > index ce48f1fcf295..d2479d5ebca8 100644
> > --- a/include/media/v4l2-subdev.h
> > +++ b/include/media/v4l2-subdev.h
> > @@ -912,6 +912,8 @@ struct v4l2_subdev_fh {
> >  #define to_v4l2_subdev_fh(fh)      \
> >     container_of(fh, struct v4l2_subdev_fh, vfh)
> >  
> > +#ifdef CONFIG_MEDIA_CONTROLLER
> 
> VIDEO_V4L2_SUBDEV_API (used below) depends on MEDIA_CONTROLLER. Either this
> or the previous patch would be meaningful but not both.
> 
> Considering a driver wouldn't use the functions below if it did not need or
> could use VIDEO_V4L2_SUBDEV_API, I'd suggest retaining the other patch.

Oh sorry didn't checked the Kconfig.
Mauro can you drop that patch and use only the patch ("media: v4l2-subdev:
add stubs for v4l2_subdev_get_try_*")?

Regards,
Marco

> > +
> >  /**
> >   * v4l2_subdev_get_try_format - ancillary routine to call
> >   * &struct v4l2_subdev_pad_config->try_fmt
> > @@ -978,6 +980,8 @@ static inline struct v4l2_rect
> >  #endif
> >  }
> >  
> > +#endif
> > +
> >  extern const struct v4l2_file_operations v4l2_subdev_fops;
> >  
> >  /**
> 
> -- 
> Sakari Ailus
> e-mail: sakari.ai...@iki.fi
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

Reply via email to