blob: 4cce091399750d69cb045e722149d8e9a2e0694a [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001/* Copyright (c) 2009, 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
14#ifndef __LINUX_I2C_TPS65023_H
15#define __LINUX_I2C_TPS65023_H
16
17#ifndef CONFIG_TPS65023
18/* Set the output voltage for the DCDC1 convertor */
19#define tps65023_set_dcdc1_level(mvolts) (-ENODEV)
20
21/* Read the output voltage from the DCDC1 convertor */
22#define tps65023_get_dcdc1_level(mvolts) (-ENODEV)
23
24#else
25/* Set the output voltage for the DCDC1 convertor */
26extern int tps65023_set_dcdc1_level(int mvolts);
27
28/* Read the output voltage from the DCDC1 convertor */
29extern int tps65023_get_dcdc1_level(int *mvolts);
30#endif
31
32#endif