diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-01-11 15:22:46 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-01-11 15:22:46 +0000 |
commit | dc228a61f57f12f036ae8b993aa3dc286493de67 (patch) | |
tree | 23c098b100a3b7b2a1630fc08e5790ae97060f00 /drivers/dahdi/xpp/xdefs.h | |
parent | f968cd418bf89bd1c5e97bb2655b76c74f45541c (diff) |
xpp: style - Run Lindent
* Here it is:
KERNEL_STYLE="-npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1"
TYPEDEFS='
-T gfp_t
-T __user
-T u_char
-T __u8
-T byte
-T bool
-T charp
-T xusb_t
-T xbus_t
-T xpd_t
-T xproto_table_t
-T xproto_entry_t
-T xframe_t
-T xpacket_t
-T reg_cmd_t
'
indent $TYPEDEFS $KERNEL_STYLE \
--ignore-newlines \
--indent-label0 \
--no-space-after-function-call-names \
"$@"
Signed-off-by: Oron Peled <oron.peled@xorcom.com>
Acked-By: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10428 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/xdefs.h')
-rw-r--r-- | drivers/dahdi/xpp/xdefs.h | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/drivers/dahdi/xpp/xdefs.h b/drivers/dahdi/xpp/xdefs.h index 715c2ff..04373f1 100644 --- a/drivers/dahdi/xpp/xdefs.h +++ b/drivers/dahdi/xpp/xdefs.h @@ -34,7 +34,7 @@ /* This is to enable user-space programs to include this. */ #include <stdint.h> -typedef uint8_t __u8; +typedef uint8_t __u8; typedef uint32_t __u32; #include <stdio.h> @@ -45,7 +45,10 @@ typedef uint32_t __u32; #define ERR(fmt, ...) printf("ERR: " fmt, ## __VA_ARGS__) #define __user -struct list_head { struct list_head *next; struct list_head *prev; }; +struct list_head { + struct list_head *next; + struct list_head *prev; +}; #endif @@ -53,7 +56,7 @@ struct list_head { struct list_head *next; struct list_head *prev; }; #define ALL_LINES ((lineno_t)-1) -#ifndef BIT /* added in 2.6.24 */ +#ifndef BIT /* added in 2.6.24 */ #define BIT(i) (1UL << (i)) #endif #define BIT_SET(x, i) ((x) |= BIT(i)) @@ -95,10 +98,10 @@ struct list_head { struct list_head *next; struct list_head *prev; }; #define VALID_XPD_NUM(x) ((x) < MAX_XPDS && (x) >= 0) -#define CHAN_BITS 5 /* 0-31 for E1 */ +#define CHAN_BITS 5 /* 0-31 for E1 */ -typedef char *charp; -typedef unsigned char byte; +typedef char *charp; +typedef unsigned char byte; #ifdef __KERNEL__ /* Kernel versions... */ @@ -121,7 +124,7 @@ typedef unsigned char byte; #define OLD_HOTPLUG_SUPPORT // for older kernels #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 10) -#define OLD_HOTPLUG_SUPPORT_269// for way older kernels +#define OLD_HOTPLUG_SUPPORT_269 // for way older kernels #endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 14) @@ -149,20 +152,20 @@ typedef unsigned char byte; * same linux-2.6-net-infrastructure-updates-to-mac80211-iwl4965.patch * as is the bool typedef. */ #if LINUX_VERSION_CODE != KERNEL_VERSION(2, 6, 18) || ! defined(hex_asc) -typedef int bool; +typedef int bool; #endif #endif #else -typedef int bool; +typedef int bool; #endif -typedef struct xbus xbus_t; -typedef struct xpd xpd_t; -typedef struct xframe xframe_t; -typedef struct xpacket xpacket_t; -typedef __u32 xpp_line_t; /* at most 31 lines for E1 */ -typedef byte lineno_t; -typedef byte xportno_t; +typedef struct xbus xbus_t; +typedef struct xpd xpd_t; +typedef struct xframe xframe_t; +typedef struct xpacket xpacket_t; +typedef __u32 xpp_line_t; /* at most 31 lines for E1 */ +typedef byte lineno_t; +typedef byte xportno_t; #define PORT_BROADCAST 255 -#endif /* XDEFS_H */ +#endif /* XDEFS_H */ |