Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mb86a16.c File Reference
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/slab.h>
#include "dvb_frontend.h"
#include "mb86a16.h"
#include "mb86a16_priv.h"

Go to the source code of this file.

Data Structures

struct  mb86a16_state
 
struct  cnr
 

Macros

#define ABS(x)   ((x) < 0 ? (-x) : (x))
 
#define MB86A16_ERROR   0
 
#define MB86A16_NOTICE   1
 
#define MB86A16_INFO   2
 
#define MB86A16_DEBUG   3
 
#define dprintk(x, y, z, format, arg...)
 
#define TRACE_IN   dprintk(verbose, MB86A16_DEBUG, 1, "-->()")
 
#define TRACE_OUT   dprintk(verbose, MB86A16_DEBUG, 1, "()-->")
 

Functions

 module_param (verbose, int, 0644)
 
struct dvb_frontendmb86a16_attach (const struct mb86a16_config *config, struct i2c_adapter *i2c_adap)
 
 EXPORT_SYMBOL (mb86a16_attach)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Manu Abraham")
 

Variables

unsigned int verbose = 5
 

Macro Definition Documentation

#define ABS (   x)    ((x) < 0 ? (-x) : (x))

Definition at line 34 of file mb86a16.c.

#define dprintk (   x,
  y,
  z,
  format,
  arg... 
)
Value:
do { \
if (z) { \
if ((x > MB86A16_ERROR) && (x > y)) \
printk(KERN_ERR "%s: " format "\n", __func__, ##arg); \
else if ((x > MB86A16_NOTICE) && (x > y)) \
printk(KERN_NOTICE "%s: " format "\n", __func__, ##arg); \
else if ((x > MB86A16_INFO) && (x > y)) \
printk(KERN_INFO "%s: " format "\n", __func__, ##arg); \
else if ((x > MB86A16_DEBUG) && (x > y)) \
printk(KERN_DEBUG "%s: " format "\n", __func__, ##arg); \
} else { \
if (x > y) \
printk(format, ##arg); \
} \
} while (0)

Definition at line 57 of file mb86a16.c.

#define MB86A16_DEBUG   3

Definition at line 55 of file mb86a16.c.

#define MB86A16_ERROR   0

Definition at line 52 of file mb86a16.c.

#define MB86A16_INFO   2

Definition at line 54 of file mb86a16.c.

#define MB86A16_NOTICE   1

Definition at line 53 of file mb86a16.c.

#define TRACE_IN   dprintk(verbose, MB86A16_DEBUG, 1, "-->()")

Definition at line 73 of file mb86a16.c.

#define TRACE_OUT   dprintk(verbose, MB86A16_DEBUG, 1, "()-->")

Definition at line 74 of file mb86a16.c.

Function Documentation

EXPORT_SYMBOL ( mb86a16_attach  )
struct dvb_frontend* mb86a16_attach ( const struct mb86a16_config config,
struct i2c_adapter i2c_adap 
)
read

Definition at line 1850 of file mb86a16.c.

MODULE_AUTHOR ( "Manu Abraham"  )
MODULE_LICENSE ( "GPL"  )
module_param ( verbose  ,
int  ,
0644   
)

Variable Documentation

unsigned int verbose = 5

Definition at line 31 of file mb86a16.c.