hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/i2c/ml86v7667.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * OKI Semiconductor ML86V7667 video decoder driver
34 *
45 * Author: Vladimir Barinov <source@cogentembedded.com>
56 * Copyright (C) 2013 Cogent Embedded, Inc.
67 * Copyright (C) 2013 Renesas Solutions Corp.
7
- *
8
- * This program is free software; you can redistribute it and/or modify it
9
- * under the terms of the GNU General Public License as published by the
10
- * Free Software Foundation; either version 2 of the License, or (at your
11
- * option) any later version.
128 */
139
1410 #include <linux/init.h>
....@@ -223,8 +219,9 @@
223219 return 0;
224220 }
225221
226
-static int ml86v7667_g_mbus_config(struct v4l2_subdev *sd,
227
- struct v4l2_mbus_config *cfg)
222
+static int ml86v7667_get_mbus_config(struct v4l2_subdev *sd,
223
+ unsigned int pad,
224
+ struct v4l2_mbus_config *cfg)
228225 {
229226 cfg->flags = V4L2_MBUS_MASTER | V4L2_MBUS_PCLK_SAMPLE_RISING |
230227 V4L2_MBUS_DATA_ACTIVE_HIGH;
....@@ -295,13 +292,13 @@
295292 .s_std = ml86v7667_s_std,
296293 .querystd = ml86v7667_querystd,
297294 .g_input_status = ml86v7667_g_input_status,
298
- .g_mbus_config = ml86v7667_g_mbus_config,
299295 };
300296
301297 static const struct v4l2_subdev_pad_ops ml86v7667_subdev_pad_ops = {
302298 .enum_mbus_code = ml86v7667_enum_mbus_code,
303299 .get_fmt = ml86v7667_fill_fmt,
304300 .set_fmt = ml86v7667_fill_fmt,
301
+ .get_mbus_config = ml86v7667_get_mbus_config,
305302 };
306303
307304 static const struct v4l2_subdev_core_ops ml86v7667_subdev_core_ops = {