David Collins | 037d648 | 2013-03-14 16:53:33 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2013, The Linux Foundation. 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 _ARCH_ARM_MACH_MSM_SPM_REGULATOR_H |
| 14 | #define _ARCH_ARM_MACH_MSM_SPM_REGULATOR_H |
| 15 | |
| 16 | #include <linux/err.h> |
| 17 | #include <linux/init.h> |
| 18 | |
| 19 | #ifdef CONFIG_MSM_SPM_REGULATOR |
| 20 | int __init spm_regulator_init(void); |
| 21 | #else |
| 22 | static inline int __init spm_regulator_init(void) { return -ENODEV; } |
| 23 | #endif |
| 24 | |
| 25 | #endif |