]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
onewire: w1-gpio: add ext_pullup_enable pin in platform data
authorDaniel Mack <zonque@gmail.com>
Wed, 25 Jul 2012 20:54:29 +0000 (22:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Aug 2012 17:02:33 +0000 (10:02 -0700)
commitd2323cf77308d6aa13a3a5287310ef93c4919d1e
treedf5fa99b5a9376386ed8deb842da90277f5cef53
parent5f3d1382e3ca39a54032784414f0ad4e7078b37e
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>
drivers/w1/masters/w1-gpio.c
include/linux/w1-gpio.h