]> git.baikalelectronics.ru Git - kernel.git/commit
usb: misc: usb3503: Support operation with no I2C control
authorMark Brown <broonie@linaro.org>
Fri, 9 Aug 2013 10:41:58 +0000 (11:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2013 19:20:27 +0000 (12:20 -0700)
commit76bff9f2ba389d1c78c399b553ef1a2df68e018b
treef0d9cefc79b8c7033b39194332cfac68e4709358
parent0477074840fb342430e0fbf126f97ee0fccd0e2a
usb: misc: usb3503: Support operation with no I2C control

Refactor so that register writes for configuration are only performed if
the device has a regmap provided and also register as a platform driver.
This allows the driver to be used to manage GPIO based control of the
device.

Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: devicetree@vger.kernel.org
Reviewed-by: Dongjin Kim <tobetter@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/usb/usb3503.txt
drivers/usb/misc/usb3503.c