Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ab3100-otp.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/mfd/abx500.h>
#include <linux/debugfs.h>
#include <linux/seq_file.h>

Go to the source code of this file.

Data Structures

struct  ab3100_otp
 

Macros

#define AB3100_OTP0   0xb0
 
#define AB3100_OTP1   0xb1
 
#define AB3100_OTP2   0xb2
 
#define AB3100_OTP3   0xb3
 
#define AB3100_OTP4   0xb4
 
#define AB3100_OTP5   0xb5
 
#define AB3100_OTP6   0xb6
 
#define AB3100_OTP7   0xb7
 
#define AB3100_OTPP   0xbf
 
#define SHOW_AB3100_ATTR(name)
 

Functions

 module_init (ab3100_otp_init)
 
 module_exit (ab3100_otp_exit)
 
 MODULE_AUTHOR ("Linus Walleij <[email protected]>")
 
 MODULE_DESCRIPTION ("AB3100 OTP Readout Driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define AB3100_OTP0   0xb0

Definition at line 20 of file ab3100-otp.c.

#define AB3100_OTP1   0xb1

Definition at line 21 of file ab3100-otp.c.

#define AB3100_OTP2   0xb2

Definition at line 22 of file ab3100-otp.c.

#define AB3100_OTP3   0xb3

Definition at line 23 of file ab3100-otp.c.

#define AB3100_OTP4   0xb4

Definition at line 24 of file ab3100-otp.c.

#define AB3100_OTP5   0xb5

Definition at line 25 of file ab3100-otp.c.

#define AB3100_OTP6   0xb6

Definition at line 26 of file ab3100-otp.c.

#define AB3100_OTP7   0xb7

Definition at line 27 of file ab3100-otp.c.

#define AB3100_OTPP   0xbf

Definition at line 28 of file ab3100-otp.c.

#define SHOW_AB3100_ATTR (   name)
Value:
static ssize_t ab3100_otp_##name##_show(struct device *dev, \
char *buf) \
{\
return sprintf(buf, "%u\n", otp->name); \
}

Definition at line 155 of file ab3100-otp.c.

Function Documentation

MODULE_AUTHOR ( "Linus Walleij <[email protected]>"  )
MODULE_DESCRIPTION ( "AB3100 OTP Readout Driver"  )
module_exit ( ab3100_otp_exit  )
module_init ( ab3100_otp_init  )
MODULE_LICENSE ( "GPL"  )