mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-25 02:32:08 +03:00
pinctrl: max77851: add max77851 pinctrl driver
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>
This commit is contained in:
committed by
mobile promotions
parent
b60b757d9c
commit
26a63fbba2
28
drivers/pinctrl/pinctrl-utils.h
Normal file
28
drivers/pinctrl/pinctrl-utils.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/* 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__ */
|
||||
Reference in New Issue
Block a user