]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/mmio-ports.c
Update license comments and added SPDX license identifiers
[pciutils.git] / lib / mmio-ports.c
index c8e5f8c935b97225f44e3362319661851a430992..f380cb3ec63b2bcb984b3f9071dc50aa65f0aeed 100644 (file)
@@ -3,7 +3,9 @@
  *
  *      Copyright (c) 2022 Pali Rohár <pali@kernel.org>
  *
- *      Can be freely distributed and used under the terms of the GNU GPL.
+ *     Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ *     SPDX-License-Identifier: GPL-2.0-or-later
  */
 
 /*
@@ -124,9 +126,9 @@ writew(unsigned short value, volatile void *addr)
 }
 
 static void
-writel(unsigned long value, volatile void *addr)
+writel(u32 value, volatile void *addr)
 {
-  *(volatile unsigned long *)addr = value;
+  *(volatile u32 *)addr = value;
 }
 
 static unsigned char
@@ -141,10 +143,10 @@ readw(volatile void *addr)
   return *(volatile unsigned short *)addr;
 }
 
-static unsigned long
+static u32
 readl(volatile void *addr)
 {
-  return *(volatile unsigned long *)addr;
+  return *(volatile u32 *)addr;
 }
 
 static int