diff options
author | Laurent Pinchart | 2012-11-29 12:24:51 +0100 |
---|---|---|
committer | Laurent Pinchart | 2013-03-15 13:33:37 +0100 |
commit | caa5bac3b4749ae3dca1db33d648280197f91a56 (patch) | |
tree | 46c1f7982dc320299740395fe1b0af543d8a0fc2 /drivers/auxdisplay | |
parent | sh-pfc: Replace first_gpio and last_gpio with nr_gpios (diff) | |
download | kernel-qcow2-linux-caa5bac3b4749ae3dca1db33d648280197f91a56.tar.gz kernel-qcow2-linux-caa5bac3b4749ae3dca1db33d648280197f91a56.tar.xz kernel-qcow2-linux-caa5bac3b4749ae3dca1db33d648280197f91a56.zip |
sh-pfc: Replace SoC info data and mark ranges with a number of pins
The data and mark ranges are only used to check whether a GPIO
corresponds to a real pin or a function. As pins come first in the list
of GPIOs and in the platform-specific GPIO enumerations, we can replace
the data and mark ranges by a number of pins.
Add an nr_pins field to struct sh_pfc_soc_info to store the number of
pins implemented by the SoC, remove the data and mark range fields and
introduce sh_pfc_gpio_is_pin() and sh_pfc_gpio_is_function() functions
to replace range-based checks.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/auxdisplay')
0 files changed, 0 insertions, 0 deletions