aboutsummaryrefslogtreecommitdiff
path: root/include/linux/w1-gpio.h
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2012-07-25 22:54:29 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-08-16 10:02:33 -0700
commitd2323cf77308d6aa13a3a5287310ef93c4919d1e (patch)
treedf5fa99b5a9376386ed8deb842da90277f5cef53 /include/linux/w1-gpio.h
parent5f3d1382e3ca39a54032784414f0ad4e7078b37e (diff)
onewire: w1-gpio: add ext_pullup_enable pin in platform data
In the process of porting boards to devicetree implemenation, we should keep information about external circuitry where they belong - the individual drivers. This patch adds a way to specify a GPIO to drive the (optional) external pull-up logic, rather than using a function pointer for that. Signed-off-by: Daniel Mack <zonque@gmail.com> Acked-by: Evgeniy Polyakov <zbr@ioremap.net> Acked-by: Ville Syrjälä <syrjala@sci.fi> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/w1-gpio.h')
-rw-r--r--include/linux/w1-gpio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/w1-gpio.h b/include/linux/w1-gpio.h
index 3adeff82212f..065e3ae79ab0 100644
--- a/include/linux/w1-gpio.h
+++ b/include/linux/w1-gpio.h
@@ -19,6 +19,7 @@ struct w1_gpio_platform_data {
unsigned int pin;
unsigned int is_open_drain:1;
void (*enable_external_pullup)(int enable);
+ unsigned int ext_pullup_enable_pin;
};
#endif /* _LINUX_W1_GPIO_H */