m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/pci.c
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2018-05-18 15:11:42 +0200
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2018-05-18 15:11:42 +0200
commit54b150fc32374921cb583d129c439b5704744dc4 (patch)
tree075d450fd6b5b22e9e44571e4d42abd7defa95b3 /pci.c
parent8ee913ba680dc520abcf08140436029e0e493220 (diff)
Implement surface read
Diffstat (limited to 'pci.c')
-rw-r--r--pci.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pci.c b/pci.c
index dd31f57..e747118 100644
--- a/pci.c
+++ b/pci.c
@@ -9,7 +9,8 @@
#include "harddoomdev.h"
#include "private_data.h"
-int init_pci(struct pci_dev *dev) {
+int init_pci(struct pci_dev *dev)
+{
struct doom_data *doom_data;
int err = 0;
@@ -39,7 +40,8 @@ error_enable:
return err;
}
-void cleanup_pci(struct pci_dev *dev) {
+void cleanup_pci(struct pci_dev *dev)
+{
struct doom_data *doom_data;
doom_data = pci_get_drvdata(dev);