projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec17748
)
m68k: sun3: Change led_pattern[] to unsigned char
author
Geert Uytterhoeven
<geert@linux-m68k.org>
Mon, 18 Sep 2023 10:07:25 +0000
(12:07 +0200)
committer
Geert Uytterhoeven
<geert@linux-m68k.org>
Fri, 6 Oct 2023 08:03:04 +0000
(10:03 +0200)
The values stored in led_pattern[] are only used for passing to
sun3_leds(), which takes an "unsigned char".
Change the type of led_pattern[] accordingly, to reduce kernel size.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link:
https://lore.kernel.org/r/794c5d543dbdae8336a13ef2459adafaaadb7d86.1695031620.git.geert@linux-m68k.org
arch/m68k/sun3/sun3ints.c
patch
|
blob
|
history
diff --git
a/arch/m68k/sun3/sun3ints.c
b/arch/m68k/sun3/sun3ints.c
index 781e7c0a6f523a2b321e36a0509eda2607f683d2..32eaf55f87bec1746b15f8ddd393a8bb2904066b 100644
(file)
--- a/
arch/m68k/sun3/sun3ints.c
+++ b/
arch/m68k/sun3/sun3ints.c
@@
-29,11
+29,11
@@
void sun3_enable_interrupts(void)
sun3_enable_irq(0);
}
-static
int
led_pattern[8] = {
-
~(0x80),
~(0x01),
-
~(0x40),
~(0x02),
-
~(0x20),
~(0x04),
-
~(0x10),
~(0x08)
+static
unsigned char
led_pattern[8] = {
+
(u8)~(0x80), (u8)
~(0x01),
+
(u8)~(0x40), (u8)
~(0x02),
+
(u8)~(0x20), (u8)
~(0x04),
+
(u8)~(0x10), (u8)
~(0x08)
};
volatile unsigned char* sun3_intreg;