mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
media: camera: Build CDI as OOT module
Convert automotive CDI kernel driver to OOT module. Jira CAMERASW-7592 Change-Id: Ib19ee594cc65f8041f6eba9aff7faefb753b771b Signed-off-by: Frank Chen <frankc@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2780572 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
0e0d2f2c07
commit
9ad6f3c84e
20
include/media/cdi-dev.h
Normal file
20
include/media/cdi-dev.h
Normal file
@@ -0,0 +1,20 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
// Copyright (c) 2020-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
|
||||
#ifndef __CDI_DEV_H__
|
||||
#define __CDI_DEV_H__
|
||||
|
||||
#include <uapi/media/cdi-dev.h>
|
||||
#include <linux/regmap.h>
|
||||
|
||||
#define MAX_CDI_NAME_LENGTH 32
|
||||
|
||||
struct cdi_dev_platform_data {
|
||||
struct device *pdev; /* parent device of cdi_dev */
|
||||
struct device_node *np;
|
||||
int reg_bits;
|
||||
int val_bits;
|
||||
char drv_name[MAX_CDI_NAME_LENGTH];
|
||||
};
|
||||
|
||||
#endif /* __CDI_DEV_H__ */
|
||||
Reference in New Issue
Block a user