]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcc50ff06c6b386f8b9f863f0e9e110573c872176
treea369d3cadbea51d09c544c62c5a6ca0413d60306
parenta8a3d870382f0a18645bb6a91633359c0ae0f8a9
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