forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/media/platform/exynos4-is/common.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Samsung S5P/EXYNOS4 SoC Camera Subsystem driver
34 *
45 * Copyright (C) 2013 Samsung Electronics Co., Ltd.
56 * Author: Sylwester Nawrocki <s.nawrocki@samsung.com>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2 as
9
- * published by the Free Software Foundation.
107 */
118
129 #include <linux/module.h>
....@@ -37,15 +34,12 @@
3734 }
3835 EXPORT_SYMBOL(fimc_find_remote_sensor);
3936
40
-void __fimc_vidioc_querycap(struct device *dev, struct v4l2_capability *cap,
41
- unsigned int caps)
37
+void __fimc_vidioc_querycap(struct device *dev, struct v4l2_capability *cap)
4238 {
43
- strlcpy(cap->driver, dev->driver->name, sizeof(cap->driver));
44
- strlcpy(cap->card, dev->driver->name, sizeof(cap->card));
39
+ strscpy(cap->driver, dev->driver->name, sizeof(cap->driver));
40
+ strscpy(cap->card, dev->driver->name, sizeof(cap->card));
4541 snprintf(cap->bus_info, sizeof(cap->bus_info),
4642 "platform:%s", dev_name(dev));
47
- cap->device_caps = caps;
48
- cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS;
4943 }
5044 EXPORT_SYMBOL(__fimc_vidioc_querycap);
5145