Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
lg2160.c File Reference
#include <linux/jiffies.h>
#include <linux/dvb/frontend.h>
#include "lg2160.h"

Go to the source code of this file.

Data Structures

struct  lg216x_state
 
struct  lg216x_reg
 

Macros

#define DBG_INFO   1
 
#define DBG_REG   2
 
#define lg_printk(kern, fmt, arg...)   printk(kern "%s: " fmt, __func__, ##arg)
 
#define lg_info(fmt, arg...)   printk(KERN_INFO "lg2160: " fmt, ##arg)
 
#define lg_warn(fmt, arg...)   lg_printk(KERN_WARNING, fmt, ##arg)
 
#define lg_err(fmt, arg...)   lg_printk(KERN_ERR, fmt, ##arg)
 
#define lg_dbg(fmt, arg...)
 
#define lg_reg(fmt, arg...)
 
#define lg_fail(ret)
 

Functions

 module_param (debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"set debug level (info=1, reg=2 (or-able))")
 
struct dvb_frontendlg2160_attach (const struct lg2160_config *config, struct i2c_adapter *i2c_adap)
 
 EXPORT_SYMBOL (lg2160_attach)
 
 MODULE_DESCRIPTION ("LG Electronics LG216x ATSC/MH Demodulator Driver")
 
 MODULE_AUTHOR ("Michael Krufky <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION ("0.3")
 

Macro Definition Documentation

#define DBG_INFO   1

Definition at line 30 of file lg2160.c.

#define DBG_REG   2

Definition at line 31 of file lg2160.c.

#define lg_dbg (   fmt,
  arg... 
)
Value:
if (debug & DBG_INFO) \
lg_printk(KERN_DEBUG, fmt, ##arg)

Definition at line 39 of file lg2160.c.

#define lg_err (   fmt,
  arg... 
)    lg_printk(KERN_ERR, fmt, ##arg)

Definition at line 38 of file lg2160.c.

#define lg_fail (   ret)
Value:
({ \
int __ret; \
__ret = (ret < 0); \
if (__ret) \
lg_err("error %d on line %d\n", ret, __LINE__); \
__ret; \
})

Definition at line 44 of file lg2160.c.

#define lg_info (   fmt,
  arg... 
)    printk(KERN_INFO "lg2160: " fmt, ##arg)

Definition at line 36 of file lg2160.c.

#define lg_printk (   kern,
  fmt,
  arg... 
)    printk(kern "%s: " fmt, __func__, ##arg)

Definition at line 33 of file lg2160.c.

#define lg_reg (   fmt,
  arg... 
)
Value:
if (debug & DBG_REG) \
lg_printk(KERN_DEBUG, fmt, ##arg)

Definition at line 41 of file lg2160.c.

#define lg_warn (   fmt,
  arg... 
)    lg_printk(KERN_WARNING, fmt, ##arg)

Definition at line 37 of file lg2160.c.

Function Documentation

EXPORT_SYMBOL ( lg2160_attach  )
struct dvb_frontend* lg2160_attach ( const struct lg2160_config config,
struct i2c_adapter i2c_adap 
)
read

Definition at line 1414 of file lg2160.c.

MODULE_AUTHOR ( "Michael Krufky <[email protected]>"  )
MODULE_DESCRIPTION ( "LG Electronics LG216x ATSC/MH Demodulator Driver"  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"set debug level (info=1, reg=2 (or-able))"   
)
MODULE_VERSION ( "0.3"  )