summaryrefslogtreecommitdiffstats
path: root/target/linux/coldfire/patches/035-mcfv4e_bitops_cleanup.patch
blob: c4f8cecdbc6cec750022cdcf6e5be5a41dab83cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
From 898b269952d096ce3f990c51b02457c27e16b83c Mon Sep 17 00:00:00 2001
From: Kurt Mahan <kmahan@freescale.com>
Date: Sun, 9 Dec 2007 02:25:49 -0700
Subject: [PATCH] Clean up formatting.

LTIBName: mcfv4e-bitops-cleanup
Signed-off-by: Kurt Mahan <kmahan@freescale.com>
---
 include/asm-m68k/bitops.h |   21 ++++++++++++++-------
 1 files changed, 14 insertions(+), 7 deletions(-)

--- a/include/asm-m68k/bitops.h
+++ b/include/asm-m68k/bitops.h
@@ -478,7 +478,8 @@ static __inline__ int __constant_coldfir
 	return retval;
 }
 #else
-static __inline__ int __constant_coldfire_test_and_set_bit(int nr,volatile void * vaddr)
+static __inline__ int __constant_coldfire_test_and_set_bit(int nr,
+	volatile void *vaddr)
 {
 	char retval;
 	volatile char *p = &((volatile char *)vaddr)[(nr^31) >> 3];
@@ -516,7 +517,8 @@ static __inline__ void __constant_coldfi
 	     : "+QUd" (*p) : "di" (nr & 7));
 }
 #else
-static __inline__ void __constant_coldfire_set_bit(int nr, volatile void * vaddr)
+static __inline__ void __constant_coldfire_set_bit(int nr,
+	volatile void *vaddr)
 {
 	volatile char *p = &((volatile char *)vaddr)[(nr^31) >> 3];
 	__asm__ __volatile__ ("bset %1,(%3)"
@@ -524,7 +526,8 @@ static __inline__ void __constant_coldfi
 }
 #endif
 
-static __inline__ void __generic_coldfire_set_bit(int nr, volatile void *vaddr)
+static __inline__ void __generic_coldfire_set_bit(int nr,
+	volatile void *vaddr)
 {
 	__asm__ __volatile__ ("bset %1,%0"
 	     : "=m" (((volatile char *)vaddr)[(nr^31) >> 3])
@@ -552,7 +555,8 @@ static __inline__ int __constant_coldfir
 	return retval;
 }
 #else
-static __inline__ int __constant_coldfire_test_and_clear_bit(int nr, volatile void *vaddr)
+static __inline__ int __constant_coldfire_test_and_clear_bit(int nr,
+	volatile void *vaddr)
 {
 	char retval;
 	volatile char *p = &((volatile char *)vaddr)[(nr^31) >> 3];
@@ -599,7 +603,8 @@ static __inline__ void __constant_coldfi
 	     : "+QUd" (*p) : "id" (nr & 7));
 }
 #else
-static __inline__ void __constant_coldfire_clear_bit(int nr, volatile void * vaddr)
+static __inline__ void __constant_coldfire_clear_bit(int nr,
+	volatile void *vaddr)
 {
 	volatile char *p = &((volatile char *)vaddr)[(nr^31) >> 3];
 	__asm__ __volatile__ ("bclr %1,(%3)"
@@ -636,7 +641,8 @@ static __inline__ int __constant_coldfir
 	return retval;
 }
 #else
-static __inline__ int __constant_coldfire_test_and_change_bit(int nr, volatile void * vaddr)
+static __inline__ int __constant_coldfire_test_and_change_bit(int nr,
+	volatile void *vaddr)
 {
 	char retval;
 	volatile char *p = &((volatile char *)vaddr)[(nr^31) >> 3];
@@ -678,7 +684,8 @@ static __inline__ void __constant_coldfi
 	     : "+QUd" (*p) : "id" (nr & 7));
 }
 #else
-static __inline__ void __constant_coldfire_change_bit(int nr, volatile void * vaddr)
+static __inline__ void __constant_coldfire_change_bit(int nr,
+	volatile void *vaddr)
 {
 	volatile char *p = &((volatile char *)vaddr)[(nr^31) >> 3];
 	__asm__ __volatile__ ("bchg %1,(%3)"