Align hwaccess.c with upstream
Also add clang fixes to platform.h and hwaccess.c that are still in
flight for upstream.
BUG=chromium:478356
BRANCH=none
TEST=still builds
Change-Id: Ic0a7767eb89154dcea1efcee59c1214d5ae79a7e
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://chromium-review.googlesource.com/452488
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
diff --git a/programmer.h b/programmer.h
index 9a2edb7..193cc98 100644
--- a/programmer.h
+++ b/programmer.h
@@ -317,8 +317,7 @@
struct pci_dev *pci_card_find(uint16_t vendor, uint16_t device,
uint16_t card_vendor, uint16_t card_device);
#endif
-void get_io_perms(void);
-void release_io_perms(void);
+int rget_io_perms(void);
#if CONFIG_INTERNAL == 1
extern int is_laptop;
extern int laptop_ok;