| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Samsung S5P/EXYNOS4 SoC Camera Subsystem driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2013 Samsung Electronics Co., Ltd. |
|---|
| 5 | 6 | * 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. |
|---|
| 10 | 7 | */ |
|---|
| 11 | 8 | |
|---|
| 12 | 9 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 37 | 34 | } |
|---|
| 38 | 35 | EXPORT_SYMBOL(fimc_find_remote_sensor); |
|---|
| 39 | 36 | |
|---|
| 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) |
|---|
| 42 | 38 | { |
|---|
| 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)); |
|---|
| 45 | 41 | snprintf(cap->bus_info, sizeof(cap->bus_info), |
|---|
| 46 | 42 | "platform:%s", dev_name(dev)); |
|---|
| 47 | | - cap->device_caps = caps; |
|---|
| 48 | | - cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS; |
|---|
| 49 | 43 | } |
|---|
| 50 | 44 | EXPORT_SYMBOL(__fimc_vidioc_querycap); |
|---|
| 51 | 45 | |
|---|