Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pinconf.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/slab.h>
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <linux/pinctrl/machine.h>
#include <linux/pinctrl/pinctrl.h>
#include <linux/pinctrl/pinconf.h>
#include "core.h"
#include "pinconf.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   "pinconfig core: " fmt
 

Functions

int pinconf_check_ops (struct pinctrl_dev *pctldev)
 
int pinconf_validate_map (struct pinctrl_map const *map, int i)
 
int pin_config_get_for_pin (struct pinctrl_dev *pctldev, unsigned pin, unsigned long *config)
 
: name of the pin to get the config for

pin_config_get() - get the configuration of a single pin parameter : name of the pin controller device for this pin

: the config pointed to by this argument will be filled in with the current pin state, it can be used directly by drivers as a numeral, or it can be dereferenced to any struct.

int pin_config_get (const char *dev_name, const char *name, unsigned long *config)
 
 EXPORT_SYMBOL (pin_config_get)
 
: name of the pin to set the config for

pin_config_set() - set the configuration of a single pin parameter : name of pin controller device for this pin

: the config in this argument will contain the desired pin state, it can be used directly by drivers as a numeral, or it can be dereferenced to any struct.

int pin_config_set (const char *dev_name, const char *name, unsigned long config)
 
 EXPORT_SYMBOL (pin_config_set)
 
int pin_config_group_get (const char *dev_name, const char *pin_group, unsigned long *config)
 
 EXPORT_SYMBOL (pin_config_group_get)
 
int pin_config_group_set (const char *dev_name, const char *pin_group, unsigned long config)
 
 EXPORT_SYMBOL (pin_config_group_set)
 
int pinconf_map_to_setting (struct pinctrl_map const *map, struct pinctrl_setting *setting)
 
void pinconf_free_setting (struct pinctrl_setting const *setting)
 
int pinconf_apply_setting (struct pinctrl_setting const *setting)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    "pinconfig core: " fmt

Definition at line 11 of file pinconf.c.

Function Documentation

EXPORT_SYMBOL ( pin_config_get  )
EXPORT_SYMBOL ( pin_config_set  )
EXPORT_SYMBOL ( pin_config_group_get  )
EXPORT_SYMBOL ( pin_config_group_set  )
int pin_config_get ( const char dev_name,
const char name,
unsigned long config 
)

Definition at line 85 of file pinconf.c.

int pin_config_get_for_pin ( struct pinctrl_dev pctldev,
unsigned  pin,
unsigned long config 
)

Definition at line 63 of file pinconf.c.

int pin_config_group_get ( const char dev_name,
const char pin_group,
unsigned long config 
)

Definition at line 169 of file pinconf.c.

int pin_config_group_set ( const char dev_name,
const char pin_group,
unsigned long  config 
)

Definition at line 207 of file pinconf.c.

int pin_config_set ( const char dev_name,
const char name,
unsigned long  config 
)

Definition at line 141 of file pinconf.c.

int pinconf_apply_setting ( struct pinctrl_setting const setting)

Definition at line 328 of file pinconf.c.

int pinconf_check_ops ( struct pinctrl_dev pctldev)

Definition at line 26 of file pinconf.c.

void pinconf_free_setting ( struct pinctrl_setting const setting)

Definition at line 324 of file pinconf.c.

int pinconf_map_to_setting ( struct pinctrl_map const map,
struct pinctrl_setting setting 
)

Definition at line 287 of file pinconf.c.

int pinconf_validate_map ( struct pinctrl_map const map,
int  i 
)

Definition at line 45 of file pinconf.c.