Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
mc13xxx.h
Go to the documentation of this file.
1 /*
2  * Copyright 2012 Creative Product Design
3  * Marc Reilly <[email protected]>
4  *
5  * This program is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU General Public License version 2 as published by the
7  * Free Software Foundation.
8  */
9 #ifndef __DRIVERS_MFD_MC13XXX_H
10 #define __DRIVERS_MFD_MC13XXX_H
11 
12 #include <linux/mutex.h>
13 #include <linux/regmap.h>
14 #include <linux/mfd/mc13xxx.h>
15 
16 enum mc13xxx_id {
20 };
21 
22 #define MC13XXX_NUMREGS 0x3f
23 
24 struct mc13xxx {
25  struct regmap *regmap;
26 
27  struct device *dev;
29 
30  struct mutex lock;
31  int irq;
32  int flags;
33 
36 
37  int adcflags;
38 };
39 
41  struct mc13xxx_platform_data *pdata, int irq);
42 
44 
45 #endif /* __DRIVERS_MFD_MC13XXX_H */