mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
nvidia-oot: Fix sparse errors for camera
Fix below sparse errors: 1. Unused variable. 2. Defined but not used function. 3. Symbol was not declared, should set it to static. 4. No newline at end of file. Bug 3954363 Change-Id: I3395b66f9acfbf5206713e87063d0e70ad28b4d0 Signed-off-by: Frank Chen <frankc@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2878138 Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
f6a50b3850
commit
be31fa8edb
@@ -1,5 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
// Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
// Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
|
||||
#include <linux/bitmap.h>
|
||||
#include <linux/cdev.h>
|
||||
@@ -398,7 +398,7 @@ static struct tegra_ivc_driver camchar_driver = {
|
||||
.ops.channel = &tegra_ivc_channel_chardev_ops,
|
||||
};
|
||||
|
||||
tegra_ivc_subsys_driver(camchar_driver, tegra_camchar_init, tegra_camchar_exit);
|
||||
module_driver(camchar_driver, tegra_camchar_init, tegra_camchar_exit);
|
||||
MODULE_AUTHOR("Jan Solanti <jsolanti@nvidia.com>");
|
||||
MODULE_DESCRIPTION("The character device for ivc-bus");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
// Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
// Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
@@ -78,7 +78,6 @@ static struct tegra_ivc_channel *tegra_ivc_channel_create(
|
||||
struct tegra_ivc_region *region,
|
||||
struct camrtc_hsp *camhsp)
|
||||
{
|
||||
struct device *peer_device = bus->dev.parent;
|
||||
struct camrtc_tlv_ivc_setup *tlv;
|
||||
struct {
|
||||
u32 rx;
|
||||
|
||||
Reference in New Issue
Block a user