* [PATCH] power: isp1704_charger: Fix isp1704_write() definition
@ 2016-05-24 15:30 Pali Rohár
0 siblings, 0 replies; only message in thread
From: Pali Rohár @ 2016-05-24 15:30 UTC (permalink / raw)
To: stable; +Cc: Ivaylo Dimitrov, sre, dbaryshkov, dwmw2, Pavel Machek
From: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
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.
Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
---
drivers/power/isp1704_charger.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/power/isp1704_charger.c b/drivers/power/isp1704_charger.c
index f2a7d97..46a292a 100644
--- a/drivers/power/isp1704_charger.c
+++ b/drivers/power/isp1704_charger.c
@@ -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);
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-05-24 15:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-24 15:30 [PATCH] power: isp1704_charger: Fix isp1704_write() definition Pali Rohár
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox