mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 01:31:30 +03:00
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>
28 lines
544 B
C
28 lines
544 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
// Copyright (c) 2017-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
|
|
#ifndef __CDI_GPIO_PRIV_H__
|
|
#define __CDI_GPIO_PRIV_H__
|
|
|
|
struct cdi_gpio_plat_data {
|
|
const char *gpio_prnt_chip;
|
|
u32 max_gpio;
|
|
};
|
|
|
|
struct cdi_gpio_desc {
|
|
u32 gpio;
|
|
atomic_t ref_cnt;
|
|
};
|
|
|
|
struct cdi_gpio_priv {
|
|
struct device *pdev;
|
|
struct cdi_gpio_plat_data pdata;
|
|
struct mutex mutex;
|
|
struct gpio_chip gpio_chip;
|
|
struct gpio_chip *tgc;
|
|
struct cdi_gpio_desc *gpios;
|
|
u32 num_gpio;
|
|
};
|
|
|
|
#endif /* __CDI_GPIO_PRIV_H__ */
|