OSDN Git Service

i2c: Switch to using gpiod interface for gpio bus recovery
authorPhil Reid <preid@electromag.com.au>
Thu, 2 Nov 2017 02:40:24 +0000 (10:40 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 27 Nov 2017 17:39:13 +0000 (18:39 +0100)
commit3991c5c80beaf7eb9bce61e0b2f8f449e351a38e
treea369d3cadbea51d09c544c62c5a6ca0413d60306
parent901a891fa6235b68d4c007800ea91c1a091f6f99
i2c: Switch to using gpiod interface for gpio bus recovery

Currently the i2c gpio recovery code uses gpio integer interface
instead of the gpiod. This change switch the core code to use
the gpiod while still retaining compatibility with the gpio integer
interface. This will allow individual driver to be updated and tested
individual to switch to using the gpiod interface.

Reviewed-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core-base.c
include/linux/i2c.h