Skip to contentSkip to conversation

power: isp1704_charger: Fix isp1704_write() definition

PATCH New Pali Rohár 1 participant 1 message May 24, 2016 Stable branch

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 power: isp1704_charger: Fix isp1704_write() definition

From: Ivaylo Dimitrov <[email protected]>

commit 88025632515adfb7fcfac15d087f155b719e78cd

All calls to isp1704_write() are using parameter sequence of isp1704_write(isp, reg, val) but the function is defined as isp1704_write(isp, val, reg). Fix isp1704_write function definition so that the driver to be functional.

---
 drivers/power/isp1704_charger.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/power/isp1704_charger.c +1 -1
index f2a7d97..46a292a 100644
@@ -76,7 +76,7 @@ static inline int isp1704_read(struct isp1704_charger *isp, u32 reg)
 	return usb_phy_io_read(isp->phy, reg);
 }
 
-static inline int isp1704_write(struct isp1704_charger *isp, u32 val, u32 reg)
+static inline int isp1704_write(struct isp1704_charger *isp, u32 reg, u32 val)
 {
 	return usb_phy_io_write(isp->phy, val, reg);
 }
Signature · 1 line
1.7.10.4