| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2010 Texas Instruments Inc |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 5 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 6 | | - * the Free Software Foundation version 2. |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 9 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 10 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 11 | | - * GNU General Public License for more details. |
|---|
| 12 | 4 | */ |
|---|
| 13 | 5 | #include <linux/module.h> |
|---|
| 14 | 6 | #include <linux/mod_devicetable.h> |
|---|
| .. | .. |
|---|
| 21 | 13 | #include <linux/platform_device.h> |
|---|
| 22 | 14 | #include <linux/videodev2.h> |
|---|
| 23 | 15 | #include <linux/slab.h> |
|---|
| 24 | | - |
|---|
| 25 | | -#ifdef CONFIG_ARCH_DAVINCI |
|---|
| 26 | | -#include <mach/hardware.h> |
|---|
| 27 | | -#include <mach/mux.h> |
|---|
| 28 | | -#endif |
|---|
| 29 | 16 | |
|---|
| 30 | 17 | #include <linux/platform_data/i2c-davinci.h> |
|---|
| 31 | 18 | |
|---|
| .. | .. |
|---|
| 616 | 603 | |
|---|
| 617 | 604 | v4l2_subdev_init(&venc->sd, &venc_ops); |
|---|
| 618 | 605 | |
|---|
| 619 | | - strcpy(venc->sd.name, venc_name); |
|---|
| 606 | + strscpy(venc->sd.name, venc_name, sizeof(venc->sd.name)); |
|---|
| 620 | 607 | if (v4l2_device_register_subdev(v4l2_dev, &venc->sd) < 0) { |
|---|
| 621 | 608 | v4l2_err(v4l2_dev, |
|---|
| 622 | 609 | "vpbe unable to register venc sub device\n"); |
|---|