mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
The UFS headers are moved to include as public headers from Linux 5.19. Use the headers directly from the core kernel instead of making the copy in drivers-private for nvidia-oot. Keep copy of only those drivers which are still in the drivers folder in core kernel. This will help to align all definition which driver needs to sync with core driver available in the core kernel. Bug 4346767 Change-Id: I1e59e32bee0f89591e50fff2f61e35d468f4207c Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3039312 GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
17 lines
457 B
C
17 lines
457 B
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
// SPDX-FileCopyrightText: Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
|
|
#include <nvidia/conftest.h>
|
|
|
|
#include <linux/version.h>
|
|
|
|
#if defined(NV_UFS_UFSHCD_H_PRESENT)
|
|
#error "Use headers from core kernel"
|
|
#else
|
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)
|
|
#include <drivers-private/scsi/ufs/k515/unipro.h>
|
|
#else
|
|
#include <drivers-private/scsi/ufs/k516/unipro.h>
|
|
#endif
|
|
#endif
|