]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pps-gpio: add device-tree binding and support
authorJan Luebbe <jlu@pengutronix.de>
Fri, 7 Jun 2013 00:09:53 +0000 (10:09 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 17 Jun 2013 08:20:59 +0000 (18:20 +1000)
commit3ef5dc3eb4f5f1c05310d0a509a174ed01671020
tree9dc06058d4f3d8178ff352df116f5e1c0d727d0d
parent51cfff43778f6039d608168bed69dbc1441e9e4a
pps-gpio: add device-tree binding and support

Instead of allocating a struct pps_gpio_platform_data in the DT case,
store the necessary information in struct pps_gpio_device_data itself.
This avoids an additional allocation and the ifdef.  It also gets rid of
some indirection.

Also use dev_err instead of pr_err in the changed code.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Rodolfo Giometti <giometti@enneenne.com>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/devicetree/bindings/pps/pps-gpio.txt [new file with mode: 0644]
drivers/pps/clients/pps-gpio.c