Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | #ifndef __PM8058_XO_H__ |
| 14 | #define __PM8058_XO_H__ |
| 15 | |
| 16 | #include <linux/regulator/machine.h> |
| 17 | |
| 18 | #define PM8058_XO_BUFFER_DEV_NAME "pm8058-xo-buffer" |
| 19 | |
| 20 | /* XO buffer control ids */ |
| 21 | #define PM8058_XO_ID_A0 0 |
| 22 | #define PM8058_XO_ID_A1 1 |
| 23 | |
| 24 | #define PM8058_XO_ID_MAX (PM8058_XO_ID_A1 + 1) |
| 25 | |
| 26 | struct pm8058_xo_pdata { |
| 27 | struct regulator_init_data init_data; |
Anirudh Ghayal | c201933 | 2011-11-12 06:29:10 +0530 | [diff] [blame] | 28 | int id; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 29 | }; |
| 30 | |
| 31 | #endif |