mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-29 23:24:11 +08:00
power: isp1704_charger: Fix isp1704_write() definition
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>
This commit is contained in:
parent
099867a16a
commit
8802563251
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user