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)
commited7357c9f9b6a560992446c37260be25e514c4ab
treeea101a81ccf88062c1f460bfea40c620f0ee67d1
parentbebff81fb8b9216eb4fba22cf910553621ae3477
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