From 8a02bf119dca0074665fa2ec2490477cfde149a8 Mon Sep 17 00:00:00 2001 From: tangdaoyong Date: Tue, 22 Oct 2024 09:35:00 +0800 Subject: [PATCH 196/222] feat:add license description Changelogs: add license description. Signed-off-by: tangdaoyong --- drivers/staging/media/eswin/vdec/dts_parser.c | 26 ++++++++++++++++--- drivers/staging/media/eswin/vdec/dts_parser.h | 20 ++++++++++++++ drivers/staging/media/eswin/vdec/subsys_cfg.h | 20 ++++++++++++++ drivers/staging/media/eswin/vdec/vc_drv_log.h | 20 ++++++++++++++ .../staging/media/eswin/vdec/vdec_allocator.c | 20 ++++++++++++++ .../staging/media/eswin/vdec/vdec_allocator.h | 20 ++++++++++++++ 6 files changed, 123 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/eswin/vdec/dts_parser.c b/drivers/staging/media/eswin/vdec/dts_parser.c index 8d96a39bf1c5..d2f8f1582445 100644 --- a/drivers/staging/media/eswin/vdec/dts_parser.c +++ b/drivers/staging/media/eswin/vdec/dts_parser.c @@ -1,3 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * ESWIN video decoder driver + * + * Copyright 2024, Beijing ESWIN Computing Technology Co., Ltd.. All rights reserved. + * SPDX-License-Identifier: GPL-2.0 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 2. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include #include #include @@ -15,8 +35,8 @@ u8 numa_id_array[4] = {0}; static int vdec_device_node_scan(unsigned char *compatible) { - struct property *prop; - struct device_node *np; + struct property *prop = NULL; + struct device_node *np = NULL; np = of_find_compatible_node(NULL, NULL, compatible); if (!np) { @@ -67,7 +87,7 @@ int vdec_trans_device_nodes(struct platform_device *pdev, u8 numa_id) int jpeg = 0; static int subsys_id = 0; static int core_index = 0; - struct fwnode_handle *child; + struct fwnode_handle *child = NULL; unsigned int vcmd_addr[2] = {0}, axife_addr[2] = {0}, vdec_addr[2] = {0}; if (of_property_read_u32_array(pdev->dev.of_node, "vcmd-core", vcmd_addr, 2)) { diff --git a/drivers/staging/media/eswin/vdec/dts_parser.h b/drivers/staging/media/eswin/vdec/dts_parser.h index d375b2e23cb9..e2200bd8afef 100644 --- a/drivers/staging/media/eswin/vdec/dts_parser.h +++ b/drivers/staging/media/eswin/vdec/dts_parser.h @@ -1,3 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * ESWIN video decoder driver + * + * Copyright 2024, Beijing ESWIN Computing Technology Co., Ltd.. All rights reserved. + * SPDX-License-Identifier: GPL-2.0 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 2. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #ifndef __DTS_PARSER_H__ #define __DTS_PARSER_H__ diff --git a/drivers/staging/media/eswin/vdec/subsys_cfg.h b/drivers/staging/media/eswin/vdec/subsys_cfg.h index bdb67a3a7bd0..43f299703d3f 100644 --- a/drivers/staging/media/eswin/vdec/subsys_cfg.h +++ b/drivers/staging/media/eswin/vdec/subsys_cfg.h @@ -1,3 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * ESWIN video decoder driver + * + * Copyright 2024, Beijing ESWIN Computing Technology Co., Ltd.. All rights reserved. + * SPDX-License-Identifier: GPL-2.0 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 2. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ struct SubsysDesc subsys_array[] ={ {0, 0, 0x50100000}, {0, 1, 0x50120000}, diff --git a/drivers/staging/media/eswin/vdec/vc_drv_log.h b/drivers/staging/media/eswin/vdec/vc_drv_log.h index 6876601c28b3..22702dfc1175 100644 --- a/drivers/staging/media/eswin/vdec/vc_drv_log.h +++ b/drivers/staging/media/eswin/vdec/vc_drv_log.h @@ -1,3 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * ESWIN video decoder driver + * + * Copyright 2024, Beijing ESWIN Computing Technology Co., Ltd.. All rights reserved. + * SPDX-License-Identifier: GPL-2.0 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 2. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #ifndef __VC_DRV_LOG__H #define __VC_DRV_LOG__H diff --git a/drivers/staging/media/eswin/vdec/vdec_allocator.c b/drivers/staging/media/eswin/vdec/vdec_allocator.c index f4a27d2e3894..e08c406e83b8 100644 --- a/drivers/staging/media/eswin/vdec/vdec_allocator.c +++ b/drivers/staging/media/eswin/vdec/vdec_allocator.c @@ -1,3 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * ESWIN video decoder driver + * + * Copyright 2024, Beijing ESWIN Computing Technology Co., Ltd.. All rights reserved. + * SPDX-License-Identifier: GPL-2.0 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 2. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "vdec_allocator.h" #include #include diff --git a/drivers/staging/media/eswin/vdec/vdec_allocator.h b/drivers/staging/media/eswin/vdec/vdec_allocator.h index a41252b2f632..768f9bb68041 100644 --- a/drivers/staging/media/eswin/vdec/vdec_allocator.h +++ b/drivers/staging/media/eswin/vdec/vdec_allocator.h @@ -1,3 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * ESWIN video decoder driver + * + * Copyright 2024, Beijing ESWIN Computing Technology Co., Ltd.. All rights reserved. + * SPDX-License-Identifier: GPL-2.0 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 2. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #ifndef __VDEC_ALLOCATOR__H #define __VDEC_ALLOCATOR__H -- 2.47.0