summaryrefslogtreecommitdiffstats
path: root/driver/base.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-08-18 07:02:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-08-18 07:02:32 +0200
commite256f2f50cc579a89e8b9460e192097e99e36ccb (patch)
treef8114bf94cf122658b072dcc709d0b8e1182e599 /driver/base.h
parentc8fe6103fa27308822592a8c3e7dc883fd299c3a (diff)
downloadpcitool-e256f2f50cc579a89e8b9460e192097e99e36ccb.tar.gz
pcitool-e256f2f50cc579a89e8b9460e192097e99e36ccb.tar.bz2
pcitool-e256f2f50cc579a89e8b9460e192097e99e36ccb.tar.xz
pcitool-e256f2f50cc579a89e8b9460e192097e99e36ccb.zip
Add support for kernel 4.1
Diffstat (limited to 'driver/base.h')
-rw-r--r--driver/base.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/driver/base.h b/driver/base.h
index 9384e2d..b976d3f 100644
--- a/driver/base.h
+++ b/driver/base.h
@@ -68,14 +68,14 @@ static dev_t pcidriver_devt;
static atomic_t pcidriver_deviceCount;
/* Sysfs attributes */
-static DEVICE_ATTR(mmap_mode, (S_IRUGO | S_IWUGO), pcidriver_show_mmap_mode, pcidriver_store_mmap_mode);
-static DEVICE_ATTR(mmap_area, (S_IRUGO | S_IWUGO), pcidriver_show_mmap_area, pcidriver_store_mmap_area);
+static DEVICE_ATTR(mmap_mode, 0664, pcidriver_show_mmap_mode, pcidriver_store_mmap_mode);
+static DEVICE_ATTR(mmap_area, 0664, pcidriver_show_mmap_area, pcidriver_store_mmap_area);
static DEVICE_ATTR(kmem_count, S_IRUGO, pcidriver_show_kmem_count, NULL);
static DEVICE_ATTR(kbuffers, S_IRUGO, pcidriver_show_kbuffers, NULL);
-static DEVICE_ATTR(kmem_alloc, S_IWUGO, NULL, pcidriver_store_kmem_alloc);
-static DEVICE_ATTR(kmem_free, S_IWUGO, NULL, pcidriver_store_kmem_free);
+static DEVICE_ATTR(kmem_alloc, 0220, NULL, pcidriver_store_kmem_alloc);
+static DEVICE_ATTR(kmem_free, 0220, NULL, pcidriver_store_kmem_free);
static DEVICE_ATTR(umappings, S_IRUGO, pcidriver_show_umappings, NULL);
-static DEVICE_ATTR(umem_unmap, S_IWUGO, NULL, pcidriver_store_umem_unmap);
+static DEVICE_ATTR(umem_unmap, 0220, NULL, pcidriver_store_umem_unmap);
#ifdef ENABLE_IRQ
static DEVICE_ATTR(irq_count, S_IRUGO, pcidriver_show_irq_count, NULL);