diff options
Diffstat (limited to 'include/linux/mfd/pcf50633/gpio.h')
-rw-r--r-- | include/linux/mfd/pcf50633/gpio.h | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/include/linux/mfd/pcf50633/gpio.h b/include/linux/mfd/pcf50633/gpio.h index f5038012bae..da74df6d849 100644 --- a/include/linux/mfd/pcf50633/gpio.h +++ b/include/linux/mfd/pcf50633/gpio.h @@ -1,12 +1,18 @@ +/* + * gpio.h -- GPIO driver for NXP PCF50633 + * + * (C) 2006-2008 by Openmoko, Inc. + * All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + */ + #ifndef __LINUX_MFD_PCF50633_GPIO_H #define __LINUX_MFD_PCF50633_GPIO_H -#include <linux/platform_device.h> - -struct pcf50633_gpio { - struct platform_device *pdev; -}; - #define PCF50633_GPIO1 1 #define PCF50633_GPIO2 2 #define PCF50633_GPIO3 3 @@ -32,12 +38,14 @@ enum pcf50633_reg_gpocfg { struct pcf50633; -extern void -pcf50633_gpio_set(struct pcf50633 *pcf, int gpio, int on); +extern void pcf50633_gpio_set(struct pcf50633 *pcf, int gpio, int on); +extern int pcf50633_gpio_get(struct pcf50633 *pcf, int gpio); -extern int -pcf50633_gpio_get(struct pcf50633 *pcf, int gpio); +extern void pcf50633_gpio_invert_set(struct pcf50633 *, int gpio, int invert); +extern int pcf50633_gpio_invert_get(struct pcf50633 *pcf, int gpio); +extern void pcf50633_gpio_power_supply_set(struct pcf50633 *, + int gpio, int regulator, int on); +#endif /* __LINUX_MFD_PCF50633_GPIO_H */ -#endif |