Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
lm3533.h File Reference

Go to the source code of this file.

Data Structures

struct  lm3533
 
struct  lm3533_ctrlbank
 
struct  lm3533_als_platform_data
 
struct  lm3533_bl_platform_data
 
struct  lm3533_led_platform_data
 
struct  lm3533_platform_data
 

Macros

#define LM3533_ATTR_RO(_name)   DEVICE_ATTR(_name, S_IRUGO, show_##_name, NULL)
 
#define LM3533_ATTR_RW(_name)   DEVICE_ATTR(_name, S_IRUGO | S_IWUSR , show_##_name, store_##_name)
 

Enumerations

enum  lm3533_boost_freq { LM3533_BOOST_FREQ_500KHZ, LM3533_BOOST_FREQ_1000KHZ }
 
enum  lm3533_boost_ovp { LM3533_BOOST_OVP_16V, LM3533_BOOST_OVP_24V, LM3533_BOOST_OVP_32V, LM3533_BOOST_OVP_40V }
 

Functions

int lm3533_ctrlbank_enable (struct lm3533_ctrlbank *cb)
 
int lm3533_ctrlbank_disable (struct lm3533_ctrlbank *cb)
 
int lm3533_ctrlbank_set_brightness (struct lm3533_ctrlbank *cb, u8 val)
 
int lm3533_ctrlbank_get_brightness (struct lm3533_ctrlbank *cb, u8 *val)
 
int lm3533_ctrlbank_set_max_current (struct lm3533_ctrlbank *cb, u16 imax)
 
int lm3533_ctrlbank_set_pwm (struct lm3533_ctrlbank *cb, u8 val)
 
int lm3533_ctrlbank_get_pwm (struct lm3533_ctrlbank *cb, u8 *val)
 
int lm3533_read (struct lm3533 *lm3533, u8 reg, u8 *val)
 
int lm3533_write (struct lm3533 *lm3533, u8 reg, u8 val)
 
int lm3533_update (struct lm3533 *lm3533, u8 reg, u8 val, u8 mask)
 

Macro Definition Documentation

#define LM3533_ATTR_RO (   _name)    DEVICE_ATTR(_name, S_IRUGO, show_##_name, NULL)

Definition at line 17 of file lm3533.h.

#define LM3533_ATTR_RW (   _name)    DEVICE_ATTR(_name, S_IRUGO | S_IWUSR , show_##_name, store_##_name)

Definition at line 19 of file lm3533.h.

Enumeration Type Documentation

Enumerator:
LM3533_BOOST_FREQ_500KHZ 
LM3533_BOOST_FREQ_1000KHZ 

Definition at line 63 of file lm3533.h.

Enumerator:
LM3533_BOOST_OVP_16V 
LM3533_BOOST_OVP_24V 
LM3533_BOOST_OVP_32V 
LM3533_BOOST_OVP_40V 

Definition at line 68 of file lm3533.h.

Function Documentation

int lm3533_ctrlbank_disable ( struct lm3533_ctrlbank cb)

Definition at line 55 of file lm3533-ctrlbank.c.

int lm3533_ctrlbank_enable ( struct lm3533_ctrlbank cb)

Definition at line 38 of file lm3533-ctrlbank.c.

int lm3533_ctrlbank_get_brightness ( struct lm3533_ctrlbank cb,
u8 val 
)
int lm3533_ctrlbank_get_pwm ( struct lm3533_ctrlbank cb,
u8 val 
)
int lm3533_ctrlbank_set_brightness ( struct lm3533_ctrlbank cb,
u8  val 
)
int lm3533_ctrlbank_set_max_current ( struct lm3533_ctrlbank cb,
u16  imax 
)

Definition at line 76 of file lm3533-ctrlbank.c.

int lm3533_ctrlbank_set_pwm ( struct lm3533_ctrlbank cb,
u8  val 
)
int lm3533_read ( struct lm3533 lm3533,
u8  reg,
u8 val 
)

Definition at line 87 of file lm3533-core.c.

int lm3533_update ( struct lm3533 lm3533,
u8  reg,
u8  val,
u8  mask 
)

Definition at line 123 of file lm3533-core.c.

int lm3533_write ( struct lm3533 lm3533,
u8  reg,
u8  val 
)

Definition at line 107 of file lm3533-core.c.