msm: camera: common: Use the appropriate header for spinlock

With the allow list tightened, use the right header for spinlock
usage. Change replaces usage of linux/spinlock.h to
linux/spinlock_types.h.

CRs-Fixed: 2841729
Change-Id: I0247501b765436099f75c9725e9f614f0873c888
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
This commit is contained in:
Karthik Anantha Ram
2021-03-09 11:40:57 -08:00
parent 0e433beabb
commit 9f4f8e114c
13 changed files with 19 additions and 19 deletions

View File

@@ -1,13 +1,13 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
/* /*
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved. * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
*/ */
#ifndef _CAM_CONTEXT_H_ #ifndef _CAM_CONTEXT_H_
#define _CAM_CONTEXT_H_ #define _CAM_CONTEXT_H_
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/spinlock.h> #include <linux/spinlock_types.h>
#include <linux/kref.h> #include <linux/kref.h>
#include "cam_req_mgr_interface.h" #include "cam_req_mgr_interface.h"
#include "cam_hw_mgr_intf.h" #include "cam_hw_mgr_intf.h"

View File

@@ -6,7 +6,7 @@
#ifndef _CAM_CUSTOM_CONTEXT_H_ #ifndef _CAM_CUSTOM_CONTEXT_H_
#define _CAM_CUSTOM_CONTEXT_H_ #define _CAM_CUSTOM_CONTEXT_H_
#include <linux/spinlock.h> #include <linux/spinlock_types.h>
#include <media/cam_custom.h> #include <media/cam_custom.h>
#include <media/cam_defs.h> #include <media/cam_defs.h>

View File

@@ -10,7 +10,7 @@
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/spinlock.h> #include <linux/spinlock_types.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include <linux/timer.h> #include <linux/timer.h>
#include <linux/bitops.h> #include <linux/bitops.h>

View File

@@ -7,7 +7,7 @@
#define _CAM_ISP_CONTEXT_H_ #define _CAM_ISP_CONTEXT_H_
#include <linux/spinlock.h> #include <linux/spinlock_types.h>
#include <media/cam_isp.h> #include <media/cam_isp.h>
#include <media/cam_defs.h> #include <media/cam_defs.h>
#include <media/cam_tfe.h> #include <media/cam_tfe.h>

View File

@@ -1,10 +1,10 @@
// SPDX-License-Identifier: GPL-2.0-only // SPDX-License-Identifier: GPL-2.0-only
/* /*
* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
*/ */
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/spinlock.h> #include <linux/spinlock_types.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/list.h> #include <linux/list.h>
#include <linux/ratelimit.h> #include <linux/ratelimit.h>

View File

@@ -4,7 +4,7 @@
*/ */
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/spinlock.h> #include <linux/spinlock_types.h>
#include <linux/list.h> #include <linux/list.h>
#include <linux/ratelimit.h> #include <linux/ratelimit.h>

View File

@@ -1,12 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
/* /*
* Copyright (c) 2020, The Linux Foundation. All rights reserved. * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
*/ */
#ifndef _CAM_SFE_CORE_H_ #ifndef _CAM_SFE_CORE_H_
#define _CAM_SFE_CORE_H_ #define _CAM_SFE_CORE_H_
#include <linux/spinlock.h> #include <linux/spinlock_types.h>
#include "cam_hw_intf.h" #include "cam_hw_intf.h"
#include "cam_sfe_hw_intf.h" #include "cam_sfe_hw_intf.h"
#include "cam_sfe_bus.h" #include "cam_sfe_bus.h"

View File

@@ -7,7 +7,7 @@
#ifndef _CAM_TFE_CORE_H_ #ifndef _CAM_TFE_CORE_H_
#define _CAM_TFE_CORE_H_ #define _CAM_TFE_CORE_H_
#include <linux/spinlock.h> #include <linux/spinlock_types.h>
#include "cam_hw_intf.h" #include "cam_hw_intf.h"
#include "cam_tfe_bus.h" #include "cam_tfe_bus.h"
#include "cam_tfe_hw_intf.h" #include "cam_tfe_hw_intf.h"

View File

@@ -6,7 +6,7 @@
#ifndef _CAM_VFE_CORE_H_ #ifndef _CAM_VFE_CORE_H_
#define _CAM_VFE_CORE_H_ #define _CAM_VFE_CORE_H_
#include <linux/spinlock.h> #include <linux/spinlock_types.h>
#include "cam_hw_intf.h" #include "cam_hw_intf.h"
#include "cam_vfe_top.h" #include "cam_vfe_top.h"
#include "cam_vfe_bus.h" #include "cam_vfe_bus.h"

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only // SPDX-License-Identifier: GPL-2.0-only
/* /*
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved. * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
*/ */
#include <linux/uaccess.h> #include <linux/uaccess.h>
@@ -9,7 +9,7 @@
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/spinlock.h> #include <linux/spinlock_types.h>
#include <linux/timer.h> #include <linux/timer.h>
#include <linux/debugfs.h> #include <linux/debugfs.h>
#include <media/cam_defs.h> #include <media/cam_defs.h>

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only // SPDX-License-Identifier: GPL-2.0-only
/* /*
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved. * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
*/ */
#include <linux/uaccess.h> #include <linux/uaccess.h>
@@ -10,7 +10,7 @@
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/spinlock.h> #include <linux/spinlock_types.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include <linux/timer.h> #include <linux/timer.h>
#include <linux/bitops.h> #include <linux/bitops.h>

View File

@@ -5,7 +5,7 @@
#ifndef _CAM_REQ_MGR_CORE_H_ #ifndef _CAM_REQ_MGR_CORE_H_
#define _CAM_REQ_MGR_CORE_H_ #define _CAM_REQ_MGR_CORE_H_
#include <linux/spinlock.h> #include <linux/spinlock_types.h>
#include "cam_req_mgr_interface.h" #include "cam_req_mgr_interface.h"
#include "cam_req_mgr_core_defs.h" #include "cam_req_mgr_core_defs.h"
#include "cam_req_mgr_timer.h" #include "cam_req_mgr_timer.h"

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only // SPDX-License-Identifier: GPL-2.0-only
/* /*
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved. * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
*/ */
#define pr_fmt(fmt) "CAM-REQ-MGR_UTIL %s:%d " fmt, __func__, __LINE__ #define pr_fmt(fmt) "CAM-REQ-MGR_UTIL %s:%d " fmt, __func__, __LINE__
@@ -9,7 +9,7 @@
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/spinlock.h> #include <linux/spinlock_types.h>
#include <linux/random.h> #include <linux/random.h>
#include <media/cam_req_mgr.h> #include <media/cam_req_mgr.h>
#include "cam_req_mgr_util.h" #include "cam_req_mgr_util.h"