sys/bus.h: Some style(9) fixes
and whitespace cleanup. MFC after: 3 days
This commit is contained in:
+4
-2
@@ -887,7 +887,8 @@ DECLARE_MODULE(_name##_##busname, _name##_##busname##_mod, \
|
||||
*/
|
||||
#define __BUS_ACCESSOR(varp, var, ivarp, ivar, type) \
|
||||
\
|
||||
static __inline type varp ## _get_ ## var(device_t dev) \
|
||||
static __inline type \
|
||||
varp ## _get_ ## var(device_t dev) \
|
||||
{ \
|
||||
uintptr_t v; \
|
||||
int e __diagused; \
|
||||
@@ -899,7 +900,8 @@ static __inline type varp ## _get_ ## var(device_t dev) \
|
||||
return ((type) v); \
|
||||
} \
|
||||
\
|
||||
static __inline void varp ## _set_ ## var(device_t dev, type t) \
|
||||
static __inline void \
|
||||
varp ## _set_ ## var(device_t dev, type t) \
|
||||
{ \
|
||||
uintptr_t v = (uintptr_t) t; \
|
||||
int e __diagused; \
|
||||
|
||||
Reference in New Issue
Block a user