]> asedeno.scripts.mit.edu Git - linux.git/commit
gpio: zynq: Clarify quirk and provide helper function
authorSoren Brinkmann <soren.brinkmann@xilinx.com>
Thu, 8 Jun 2017 17:32:07 +0000 (10:32 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 16 Jun 2017 09:13:12 +0000 (11:13 +0200)
commit3638bd4a066c14256bad0b99a60821709d3807b4
treec11c1f904f8fc2d614b30e4dcd31824540dda299
parent5117f2b05588749b7c7a6ecd3c986bf9e8b581c0
gpio: zynq: Clarify quirk and provide helper function

The one quirk used in the zynq GPIO driver was called FOO which is not
very descriptive. Rename the quirk to IS_ZYNQ as it indicates whether
the HW is a zynq or zynqmp device to allow handling of device-specific
differences of the HW.
Also provide a helper function to test whether the HW is zynq or zynqmp.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-zynq.c