diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-07-25 01:43:04 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-07-25 01:43:04 -0400 |
| commit | 314820c9e892d8f41ba4db300ec96770d9c8294b (patch) | |
| tree | 3d5c59a429239b180c77e57f998a78d3f2b79827 /include/linux/i2c | |
| parent | e76b8ee25e034ab601b525abb95cea14aa167ed3 (diff) | |
| parent | 07b8481d4aff73d6f451f25e74ea10240ff5131e (diff) | |
Merge branch 'next' into for-linus
Diffstat (limited to 'include/linux/i2c')
| -rw-r--r-- | include/linux/i2c/mms114.h | 24 | ||||
| -rw-r--r-- | include/linux/i2c/twl.h | 13 |
2 files changed, 35 insertions, 2 deletions
diff --git a/include/linux/i2c/mms114.h b/include/linux/i2c/mms114.h new file mode 100644 index 000000000000..5722ebfb2738 --- /dev/null +++ b/include/linux/i2c/mms114.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2012 Samsung Electronics Co.Ltd | ||
| 3 | * Author: Joonyoung Shim <jy0922.shim@samsung.com> | ||
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License version 2 as | ||
| 7 | * published by the Free Software Foundationr | ||
| 8 | */ | ||
| 9 | |||
| 10 | #ifndef __LINUX_MMS114_H | ||
| 11 | #define __LINUX_MMS114_H | ||
| 12 | |||
| 13 | struct mms114_platform_data { | ||
| 14 | unsigned int x_size; | ||
| 15 | unsigned int y_size; | ||
| 16 | unsigned int contact_threshold; | ||
| 17 | unsigned int moving_threshold; | ||
| 18 | bool x_invert; | ||
| 19 | bool y_invert; | ||
| 20 | |||
| 21 | void (*cfg_pin)(bool); | ||
| 22 | }; | ||
| 23 | |||
| 24 | #endif /* __LINUX_MMS114_H */ | ||
diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h index 1f90de0cfdbe..3993477103a5 100644 --- a/include/linux/i2c/twl.h +++ b/include/linux/i2c/twl.h | |||
| @@ -171,8 +171,6 @@ static inline int twl_class_is_ ##class(void) \ | |||
| 171 | TWL_CLASS_IS(4030, TWL4030_CLASS_ID) | 171 | TWL_CLASS_IS(4030, TWL4030_CLASS_ID) |
| 172 | TWL_CLASS_IS(6030, TWL6030_CLASS_ID) | 172 | TWL_CLASS_IS(6030, TWL6030_CLASS_ID) |
| 173 | 173 | ||
| 174 | #define TWL6025_SUBCLASS BIT(4) /* TWL6025 has changed registers */ | ||
| 175 | |||
| 176 | /* | 174 | /* |
| 177 | * Read and write single 8-bit registers | 175 | * Read and write single 8-bit registers |
| 178 | */ | 176 | */ |
| @@ -746,6 +744,17 @@ struct twl_regulator_driver_data { | |||
| 746 | void *data; | 744 | void *data; |
| 747 | unsigned long features; | 745 | unsigned long features; |
| 748 | }; | 746 | }; |
| 747 | /* chip-specific feature flags, for twl_regulator_driver_data.features */ | ||
| 748 | #define TWL4030_VAUX2 BIT(0) /* pre-5030 voltage ranges */ | ||
| 749 | #define TPS_SUBSET BIT(1) /* tps659[23]0 have fewer LDOs */ | ||
| 750 | #define TWL5031 BIT(2) /* twl5031 has different registers */ | ||
| 751 | #define TWL6030_CLASS BIT(3) /* TWL6030 class */ | ||
| 752 | #define TWL6025_SUBCLASS BIT(4) /* TWL6025 has changed registers */ | ||
| 753 | #define TWL4030_ALLOW_UNSUPPORTED BIT(5) /* Some voltages are possible | ||
| 754 | * but not officially supported. | ||
| 755 | * This flag is necessary to | ||
| 756 | * enable them. | ||
| 757 | */ | ||
| 749 | 758 | ||
| 750 | /*----------------------------------------------------------------------*/ | 759 | /*----------------------------------------------------------------------*/ |
| 751 | 760 | ||
