diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-01-11 15:21:54 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-01-11 15:21:54 +0000 |
commit | f968cd418bf89bd1c5e97bb2655b76c74f45541c (patch) | |
tree | fedb20f08b79edc1f8885d72b0258a3a4b59edcc /drivers/dahdi/xpp/xpp_dahdi.c | |
parent | 2b4ef92bea2edc5aebd3c1239fb5baf58681b900 (diff) |
xpp: style - convert typedef of byte to __u8
* Applied via:
perl -pi \
-e '/"/ and next;' \
-e '/^\s*\*/ and next;' \
-e '/\/\*.*byte/ and next;' \
-e '/typedef.*byte/ and next;' \
-e 's/\bbyte\b/__u8/g' "$@"
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@10427 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/xpp_dahdi.c')
-rw-r--r-- | drivers/dahdi/xpp/xpp_dahdi.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/dahdi/xpp/xpp_dahdi.c b/drivers/dahdi/xpp/xpp_dahdi.c index fcdcba0..3d75296 100644 --- a/drivers/dahdi/xpp/xpp_dahdi.c +++ b/drivers/dahdi/xpp/xpp_dahdi.c @@ -220,11 +220,11 @@ void xpd_free(xpd_t *xpd) int create_xpd(xbus_t *xbus, const xproto_table_t *proto_table, int unit, int subunit, - byte type, - byte subtype, + __u8 type, + __u8 subtype, int subunits, int subunit_ports, - byte port_dir) + __u8 port_dir) { xpd_t *xpd = NULL; bool to_phone; @@ -326,10 +326,10 @@ static int xpd_read_proc(char *page, char **start, off_t off, int count, int *eo len += sprintf(page + len, "\nPCM:\n | [readchunk] | [writechunk] | W D"); for_each_line(xpd, i) { struct dahdi_chan *chan = XPD_CHAN(xpd, i); - byte rchunk[DAHDI_CHUNKSIZE]; - byte wchunk[DAHDI_CHUNKSIZE]; - byte *rp; - byte *wp; + __u8 rchunk[DAHDI_CHUNKSIZE]; + __u8 wchunk[DAHDI_CHUNKSIZE]; + __u8 *rp; + __u8 *wp; int j; if (IS_SET(PHONEDEV(xpd).digital_outputs, i)) @@ -522,7 +522,7 @@ __must_check xpd_t *xpd_alloc(xbus_t *xbus, __func__, type); goto err; } - xpd->priv = (byte *)xpd + sizeof(xpd_t); + xpd->priv = (__u8 *)xpd + sizeof(xpd_t); spin_lock_init(&xpd->lock); xpd->card_present = 0; xpd->type = proto_table->type; |