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)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 15 May 2014 05:27:34 +0000 (07:27 +0200)
commit73bcf0bf9ac9a75d8fef57e250cd814936ba41d7
tree99f78fe2c996ad3e04c2ac9560a954907862f94e
parent910207cae4aa3cb9e9c519320642a7bacb2246bc
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>
[mszyprow: mainline commit 3f0d1c67fa20d524fdcb4a7dcda19ed76c59be44]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I3f0d1c67fa20d524fdcb4a7dcda19ed76c59be44
Documentation/devicetree/bindings/usb/usb3503.txt
drivers/usb/misc/usb3503.c