replace common qcom sources with samsung ones

This commit is contained in:
SaschaNes
2025-08-12 22:13:00 +02:00
parent ba24dcded9
commit 6f7753de11
5682 changed files with 2450203 additions and 103634 deletions

View File

@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
* Copyright (c) 2023-2025 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#define pr_fmt(fmt) "%s:[%s][%d]: " fmt, KBUILD_MODNAME, __func__, __LINE__
@@ -1362,7 +1362,7 @@ static ssize_t tzdbg_fs_read_encrypted(int tz_id, char __user *buf,
stat->display_offset += ret;
stat->display_len -= ret;
pr_debug("ret = %d, offset = %d\n", ret, (int)(*offp));
pr_debug("display_len = %zu, offset = %zu\n",
pr_debug("display_len = %lu, offset = %lu\n",
stat->display_len, stat->display_offset);
return ret;
}
@@ -1944,11 +1944,7 @@ exit_free_diag_buf:
return -ENXIO;
}
#if KERNEL_VERSION(6, 10, 0) > LINUX_VERSION_CODE
static int tz_log_remove(struct platform_device *pdev)
#else
static void tz_log_remove(struct platform_device *pdev)
#endif
{
tzdbg_fs_exit(pdev);
dma_free_coherent(&pdev->dev, display_buf_size,
@@ -1957,9 +1953,7 @@ static void tz_log_remove(struct platform_device *pdev)
tzdbg_free_qsee_log_buf(pdev);
if (!tzdbg.is_encrypted_log_enabled)
kfree(tzdbg.diag_buf);
#if KERNEL_VERSION(6, 10, 0) > LINUX_VERSION_CODE
return 0;
#endif
}
static const struct of_device_id tzlog_match[] = {