power: supply: qcom: make qpnp-typec driver msm-4.9 compatible

Replace the direct spmi_read and spmi_write calls with the regmap
interface calls. Register the driver as platform device driver.
Fix power supply registration and interrupt registration mechanism.

CRs-Fixed: 2120828
Change-Id: I064a9e026048d86187ad0054a4ca9a832e1780fd
Signed-off-by: Umang Agrawal <uagrawal@codeaurora.org>
1 file changed