greybus: bootrom: Create gb_bootrom_cancel_timeout()
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 22 Jul 2016 21:13:43 +0000 (14:13 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 22 Jul 2016 22:25:18 +0000 (15:25 -0700)
commit40d276ede92e85e4f414ac655c217e0bf5292cbb
tree2ce384b1acc47482844079c254444eec4a33af61
parent6d9e6ffca4226007672800a6681c42cc877aab60
greybus: bootrom: Create gb_bootrom_cancel_timeout()

We set timeouts using gb_bootrom_set_timeout(), which hides the internal
implementation, i.e. workqueues.

While canceling timeouts, we do cancel_delayed_work_sync(), which
exposes the internal implementation and doesn't look that clean.

Create gb_bootrom_cancel_timeout() to hide the internal implementation
here as well.

Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/bootrom.c