]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: gpio: Implement GPIO reservation in the uclass
authorSimon Glass <sjg@chromium.org>
Sat, 4 Oct 2014 17:29:42 +0000 (11:29 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 24 Oct 2014 01:29:51 +0000 (19:29 -0600)
commitb892d127ffd448e8adf21e9703c0c5107e2a7814
tree60d7b9932cde9d5eaa3ecc0e557f171d39d0f695
parentb3f4ca1135edd66d14254089bbeb8077c6d0bb72
dm: gpio: Implement GPIO reservation in the uclass

We have several GPIO drivers now and all are doing similar things to record
which GPIOs are reserved.

Move this logic into the uclass to make the drivers similar.

We retain the request()/free() methods since currently one driver does use
these for setting up the pin.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/gpio/gpio-uclass.c
include/asm-generic/gpio.h