mirror of
				https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux
				synced 2025-11-04 16:52:06 +10:00 
			
		
		
		
	There is a few things done: - include only the headers we are direct user of - when pointer is in use, provide a forward declaration - add missing headers - group generic headers and subsystem headers - sort each group alphabetically While at it, fix some awkward indentations. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
		
			
				
	
	
		
			55 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/* SPDX-License-Identifier: GPL-2.0-only */
 | 
						|
/*
 | 
						|
 * Internal interface to pinctrl device tree integration
 | 
						|
 *
 | 
						|
 * Copyright (C) 2012 NVIDIA CORPORATION. All rights reserved.
 | 
						|
 */
 | 
						|
 | 
						|
#include <linux/errno.h>
 | 
						|
 | 
						|
struct device_node;
 | 
						|
struct of_phandle_args;
 | 
						|
 | 
						|
struct pinctrl;
 | 
						|
struct pinctrl_dev;
 | 
						|
 | 
						|
#ifdef CONFIG_OF
 | 
						|
 | 
						|
void pinctrl_dt_free_maps(struct pinctrl *p);
 | 
						|
int pinctrl_dt_to_map(struct pinctrl *p, struct pinctrl_dev *pctldev);
 | 
						|
 | 
						|
int pinctrl_count_index_with_args(const struct device_node *np,
 | 
						|
				  const char *list_name);
 | 
						|
 | 
						|
int pinctrl_parse_index_with_args(const struct device_node *np,
 | 
						|
				  const char *list_name, int index,
 | 
						|
				  struct of_phandle_args *out_args);
 | 
						|
 | 
						|
#else
 | 
						|
 | 
						|
static inline int pinctrl_dt_to_map(struct pinctrl *p,
 | 
						|
				    struct pinctrl_dev *pctldev)
 | 
						|
{
 | 
						|
	return 0;
 | 
						|
}
 | 
						|
 | 
						|
static inline void pinctrl_dt_free_maps(struct pinctrl *p)
 | 
						|
{
 | 
						|
}
 | 
						|
 | 
						|
static inline int pinctrl_count_index_with_args(const struct device_node *np,
 | 
						|
						const char *list_name)
 | 
						|
{
 | 
						|
	return -ENODEV;
 | 
						|
}
 | 
						|
 | 
						|
static inline int
 | 
						|
pinctrl_parse_index_with_args(const struct device_node *np,
 | 
						|
			      const char *list_name, int index,
 | 
						|
			      struct of_phandle_args *out_args)
 | 
						|
{
 | 
						|
	return -ENODEV;
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |