]> git.baikalelectronics.ru Git - kernel.git/commit
pps-gpio: add device-tree binding and support
authorJan Luebbe <jlu@pengutronix.de>
Wed, 3 Jul 2013 22:09:12 +0000 (15:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:08:06 +0000 (16:08 -0700)
commitb66fc0d302748dba7cbd9de8cad7594000cb690d
tree6c161151b513d5543d4c635cf91d5c8cd77efbe2
parenta638aa17f450a35af096e6bdfa52752cce4c9b8c
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/devicetree/bindings/pps/pps-gpio.txt [new file with mode: 0644]
drivers/pps/clients/pps-gpio.c