usb: typec: tcpm: Fix compilation error
authorVipul Kumar <vipul_kumar@mentor.com>
Thu, 10 Jan 2019 05:24:10 +0000 (10:54 +0530)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitd2c9f36aa0cb60fd8cd9c512af65f8eac610ddcb
tree1968d99db0cedf1b6e46e10d06fb35ae899d2ac3
parent8e392f3d06f97f87e69da430ae320eb4b8fb4d52
usb: typec: tcpm: Fix compilation error

As per 'commit 8e04b3721cc8 ("typec: tcpm: add starting value for drp
toggling")', make changes to fix the below compilation error.

drivers/usb/typec/tcpm.c: In function ‘tcpm_src_attach’:
drivers/usb/typec/tcpm.c:2625:2: error: too few arguments to function ‘tcpm_start_drp_toggling’
  tcpm_start_drp_toggling(port);
  ^~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/typec/tcpm.c:2537:13: note: declared here
 static bool tcpm_start_drp_toggling(struct tcpm_port *port,
             ^~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/typec/tcpm.c: In function ‘tcpm_snk_attach’:
drivers/usb/typec/tcpm.c:2749:2: error: too few arguments to function ‘tcpm_start_drp_toggling’
  tcpm_start_drp_toggling(port);
  ^~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/typec/tcpm.c:2537:13: note: declared here
 static bool tcpm_start_drp_toggling(struct tcpm_port *port,
             ^~~~~~~~~~~~~~~~~~~~~~~
scripts/Makefile.build:303: recipe for target 'drivers/usb/typec/tcpm.o' failed

Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
drivers/usb/typec/tcpm.c