added 2.6.29.6 aldebaran kernel
[nao-ulib.git] / kernel / 2.6.29.6-aldebaran-rt / arch / arm / mach-msm / include / mach / vreg.h
blob9f9e25cb718e3f00e7b24e4d785656b9413b486d
1 /* linux/include/asm-arm/arch-msm/vreg.h
3 * Copyright (C) 2008 Google, Inc.
4 * Author: Brian Swetland <swetland@google.com>
6 * This software is licensed under the terms of the GNU General Public
7 * License version 2, as published by the Free Software Foundation, and
8 * may be copied, distributed, and modified under those terms.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
17 #ifndef __ARCH_ARM_MACH_MSM_VREG_H
18 #define __ARCH_ARM_MACH_MSM_VREG_H
20 struct vreg;
22 struct vreg *vreg_get(struct device *dev, const char *id);
23 void vreg_put(struct vreg *vreg);
25 int vreg_enable(struct vreg *vreg);
26 void vreg_disable(struct vreg *vreg);
27 int vreg_set_level(struct vreg *vreg, unsigned mv);
29 #endif