X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fmmio-ports.c;h=f380cb3ec63b2bcb984b3f9071dc50aa65f0aeed;hb=6182921907ef3cc31be3394eb468b24bcd3955a8;hp=c8e5f8c935b97225f44e3362319661851a430992;hpb=e2d9340ba416ef0856fb8198e16ffd255225952c;p=pciutils.git diff --git a/lib/mmio-ports.c b/lib/mmio-ports.c index c8e5f8c..f380cb3 100644 --- a/lib/mmio-ports.c +++ b/lib/mmio-ports.c @@ -3,7 +3,9 @@ * * Copyright (c) 2022 Pali Rohár * - * 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