mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
Add duplicate copy of needed linux header files from core kernel k6.1 into nvidia-oot as max77851 pinctrl drivers compilation fails. Bug 200749982 Change-Id: I660e2025e86494e87e5972d16f356efd70720511 Signed-off-by: Shubhi Garg <shgarg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-5.10/+/2595353 Signed-off-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2947786 GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
29 lines
1.1 KiB
C
29 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* SPDX-FileCopyrightText: Copyright (c) 2013-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved. */
|
|
/*
|
|
* Utils functions to implement the pincontrol driver.
|
|
* Author: Laxman Dewangan <ldewangan@nvidia.com>
|
|
*/
|
|
#ifndef __PINCTRL_UTILS_H__
|
|
#define __PINCTRL_UTILS_H__
|
|
|
|
int pinctrl_utils_reserve_map(struct pinctrl_dev *pctldev,
|
|
struct pinctrl_map **map, unsigned *reserved_maps,
|
|
unsigned *num_maps, unsigned reserve);
|
|
int pinctrl_utils_add_map_mux(struct pinctrl_dev *pctldev,
|
|
struct pinctrl_map **map, unsigned *reserved_maps,
|
|
unsigned *num_maps, const char *group,
|
|
const char *function);
|
|
int pinctrl_utils_add_map_configs(struct pinctrl_dev *pctldev,
|
|
struct pinctrl_map **map, unsigned *reserved_maps,
|
|
unsigned *num_maps, const char *group,
|
|
unsigned long *configs, unsigned num_configs,
|
|
enum pinctrl_map_type type);
|
|
int pinctrl_utils_add_config(struct pinctrl_dev *pctldev,
|
|
unsigned long **configs, unsigned *num_configs,
|
|
unsigned long config);
|
|
void pinctrl_utils_free_map(struct pinctrl_dev *pctldev,
|
|
struct pinctrl_map *map, unsigned num_maps);
|
|
|
|
#endif /* __PINCTRL_UTILS_H__ */
|