Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
rfkill-gpio.c File Reference
#include <linux/gpio.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/rfkill.h>
#include <linux/platform_device.h>
#include <linux/clk.h>
#include <linux/slab.h>
#include <linux/rfkill-gpio.h>

Go to the source code of this file.

Data Structures

struct  rfkill_gpio_data
 

Macros

#define PWR_CLK_SET(_RF, _EN)   ((_RF)->pwr_clk_enabled = (!(_EN) ? PWR_ENABLED : PWR_DISABLED))
 
#define PWR_CLK_ENABLED(_RF)   ((_RF)->pwr_clk_enabled == PWR_ENABLED)
 
#define PWR_CLK_DISABLED(_RF)   ((_RF)->pwr_clk_enabled != PWR_ENABLED)
 

Enumerations

enum  rfkill_gpio_clk_state { UNSPECIFIED = 0, PWR_ENABLED, PWR_DISABLED }
 

Functions

 module_platform_driver (rfkill_gpio_driver)
 
 MODULE_DESCRIPTION ("gpio rfkill")
 
 MODULE_AUTHOR ("NVIDIA")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define PWR_CLK_DISABLED (   _RF)    ((_RF)->pwr_clk_enabled != PWR_ENABLED)

Definition at line 39 of file rfkill-gpio.c.

#define PWR_CLK_ENABLED (   _RF)    ((_RF)->pwr_clk_enabled == PWR_ENABLED)

Definition at line 38 of file rfkill-gpio.c.

#define PWR_CLK_SET (   _RF,
  _EN 
)    ((_RF)->pwr_clk_enabled = (!(_EN) ? PWR_ENABLED : PWR_DISABLED))

Definition at line 36 of file rfkill-gpio.c.

Enumeration Type Documentation

Enumerator:
UNSPECIFIED 
PWR_ENABLED 
PWR_DISABLED 

Definition at line 30 of file rfkill-gpio.c.

Function Documentation

MODULE_AUTHOR ( "NVIDIA"  )
MODULE_DESCRIPTION ( "gpio rfkill )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( rfkill_gpio_driver  )