mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 01:31:30 +03:00
Port RTCPU drivers from kernel/nvidia to kernel/nvidia-oot. In addition to copying the files this patch: 1) Modifies make files to build rtcpu drivers as modules 2) Modifies licenses of all ported files to SPDX 3) Adds MODULE_LICENSE macro to all modules 4) Removes checks for old kernel versions and the dead code after those checks 5) Fixes style errors according to checkpatch.pl Change-Id: If64296a22ce958e5326c7509cb69f8f7154f598e Signed-off-by: Frank Chen <frankc@nvidia.com> Signed-off-by: Matti Ryttylainen <mryttylainen@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2783040 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Ankur Pawar <ankurp@nvidia.com> Reviewed-by: Semi Malinen <smalinen@nvidia.com> Reviewed-by: Pekka Pessi <ppessi@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
51 lines
1.4 KiB
C
51 lines
1.4 KiB
C
// SPDX-License-Identifier: GPL-2.0
|
|
// Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
|
|
#include <linux/device.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/module.h>
|
|
#include <linux/of.h>
|
|
#include <linux/of_device.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/tegra-ivc.h>
|
|
#include <linux/tegra-ivc-bus.h>
|
|
#include <linux/tegra-ivc-instance.h>
|
|
|
|
static int tegra_camera_diagnostics_probe(struct tegra_ivc_channel *ch)
|
|
{
|
|
(void)ch;
|
|
return 0;
|
|
}
|
|
|
|
static void tegra_camera_diagnostics_remove(struct tegra_ivc_channel *ch)
|
|
{
|
|
(void)ch;
|
|
}
|
|
|
|
static const struct tegra_ivc_channel_ops
|
|
tegra_camera_diagnostics_channel_ops = {
|
|
.probe = tegra_camera_diagnostics_probe,
|
|
.remove = tegra_camera_diagnostics_remove,
|
|
};
|
|
|
|
static const struct of_device_id camera_diagnostics_of_match[] = {
|
|
{ .compatible = "nvidia,tegra186-camera-diagnostics", },
|
|
{ },
|
|
};
|
|
|
|
static struct tegra_ivc_driver camera_diagnostics_driver = {
|
|
.driver = {
|
|
.owner = THIS_MODULE,
|
|
.bus = &tegra_ivc_bus_type,
|
|
.name = "tegra-camera-diagnostics",
|
|
.of_match_table = camera_diagnostics_of_match,
|
|
},
|
|
.dev_type = &tegra_ivc_channel_type,
|
|
.ops.channel = &tegra_camera_diagnostics_channel_ops,
|
|
};
|
|
|
|
tegra_ivc_subsys_driver_default(camera_diagnostics_driver);
|
|
MODULE_AUTHOR("Pekka Pessi <ppessi@nvidia.com>");
|
|
MODULE_DESCRIPTION("Dummy device driver for Camera Diagnostics IVC Channel");
|
|
MODULE_LICENSE("GPL v2");
|