Re: [PATCH] ov2659: Don't depend on subdev API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Mauro,

Thanks for the patch.

On Thu, May 14, 2015 at 11:27 PM, Mauro Carvalho Chehab
<mchehab@xxxxxxxxxxxxxxx> wrote:
> The subdev API is optional. No driver should depend on it.
>
> Avoid compilation breakages if subdev API is not selected:
>
> drivers/media/i2c/ov2659.c: In function ‘ov2659_get_fmt’:
> drivers/media/i2c/ov2659.c:1054:3: error: implicit declaration of function ‘v4l2_subdev_get_try_format’ [-Werror=implicit-function-declaration]
>    mf = v4l2_subdev_get_try_format(sd, cfg, 0);
>    ^
> drivers/media/i2c/ov2659.c:1054:6: warning: assignment makes pointer from integer without a cast
>    mf = v4l2_subdev_get_try_format(sd, cfg, 0);
>       ^
> drivers/media/i2c/ov2659.c: In function ‘ov2659_set_fmt’:
> drivers/media/i2c/ov2659.c:1129:6: warning: assignment makes pointer from integer without a cast
>    mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad);
>       ^
> drivers/media/i2c/ov2659.c: In function ‘ov2659_open’:
> drivers/media/i2c/ov2659.c:1264:38: error: ‘struct v4l2_subdev_fh’ has no member named ‘pad’
>      v4l2_subdev_get_try_format(sd, fh->pad, 0);
>                                       ^
>
> Compile-tested only.
>
> Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxx>
>
Acked-by: Lad, Prabhakar <prabhakar.csengg@xxxxxxxxx>
Tested-by: Lad, Prabhakar <prabhakar.csengg@xxxxxxxxx>

Cheers,
--Prabhakar Lad
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux