]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: s3c2410: Convert to use GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 30 May 2019 21:50:13 +0000 (23:50 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 12 Jun 2019 10:58:07 +0000 (12:58 +0200)
commit17c450a531d972073783ef4c7fe638f1dc03fb21
treeea101a81ccf88062c1f460bfea40c620f0ee67d1
parent957d77b532e9d0575afc88057046245e897e4cd0
i2c: s3c2410: Convert to use GPIO descriptors

The S3C2410 does some funny dance around its pins:
- First try to call back to the platform to get and control
  some GPIO pins
- If this doesn't work, it tries to get a pin control handle
- If this doesn't work, it retrieves two GPIOs from the device
  tree node and does nothing with them

If we're gonna retrieve two GPIOs and do nothing with them, we
might as well do it using the GPIO descriptor API. When we use
the resource management API, the code gets smaller.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-s3c2410.c