[NET] IRDA: Fix whitespace errors.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
981c0ff690
commit
6819bc2e1e
@@ -1,5 +1,5 @@
|
||||
/*********************************************************************
|
||||
*
|
||||
*
|
||||
* Filename: ircomm_ttp.c
|
||||
* Version: 1.0
|
||||
* Description: Interface between IrCOMM and IrTTP
|
||||
@@ -8,25 +8,25 @@
|
||||
* Created at: Sun Jun 6 20:48:27 1999
|
||||
* Modified at: Mon Dec 13 11:35:13 1999
|
||||
* Modified by: Dag Brattli <dagb@cs.uit.no>
|
||||
*
|
||||
*
|
||||
* Copyright (c) 1999 Dag Brattli, All Rights Reserved.
|
||||
* Copyright (c) 2000-2003 Jean Tourrilhes <jt@hpl.hp.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
*
|
||||
********************************************************************/
|
||||
|
||||
#include <linux/sched.h>
|
||||
@@ -43,8 +43,8 @@
|
||||
static int ircomm_ttp_data_indication(void *instance, void *sap,
|
||||
struct sk_buff *skb);
|
||||
static void ircomm_ttp_connect_confirm(void *instance, void *sap,
|
||||
struct qos_info *qos,
|
||||
__u32 max_sdu_size,
|
||||
struct qos_info *qos,
|
||||
__u32 max_sdu_size,
|
||||
__u8 max_header_size,
|
||||
struct sk_buff *skb);
|
||||
static void ircomm_ttp_connect_indication(void *instance, void *sap,
|
||||
@@ -54,25 +54,25 @@ static void ircomm_ttp_connect_indication(void *instance, void *sap,
|
||||
struct sk_buff *skb);
|
||||
static void ircomm_ttp_flow_indication(void *instance, void *sap,
|
||||
LOCAL_FLOW cmd);
|
||||
static void ircomm_ttp_disconnect_indication(void *instance, void *sap,
|
||||
static void ircomm_ttp_disconnect_indication(void *instance, void *sap,
|
||||
LM_REASON reason,
|
||||
struct sk_buff *skb);
|
||||
static int ircomm_ttp_data_request(struct ircomm_cb *self,
|
||||
struct sk_buff *skb,
|
||||
struct sk_buff *skb,
|
||||
int clen);
|
||||
static int ircomm_ttp_connect_request(struct ircomm_cb *self,
|
||||
struct sk_buff *userdata,
|
||||
static int ircomm_ttp_connect_request(struct ircomm_cb *self,
|
||||
struct sk_buff *userdata,
|
||||
struct ircomm_info *info);
|
||||
static int ircomm_ttp_connect_response(struct ircomm_cb *self,
|
||||
struct sk_buff *userdata);
|
||||
static int ircomm_ttp_disconnect_request(struct ircomm_cb *self,
|
||||
struct sk_buff *userdata,
|
||||
static int ircomm_ttp_disconnect_request(struct ircomm_cb *self,
|
||||
struct sk_buff *userdata,
|
||||
struct ircomm_info *info);
|
||||
|
||||
/*
|
||||
* Function ircomm_open_tsap (self)
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
int ircomm_open_tsap(struct ircomm_cb *self)
|
||||
@@ -113,11 +113,11 @@ int ircomm_open_tsap(struct ircomm_cb *self)
|
||||
/*
|
||||
* Function ircomm_ttp_connect_request (self, userdata)
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
static int ircomm_ttp_connect_request(struct ircomm_cb *self,
|
||||
struct sk_buff *userdata,
|
||||
static int ircomm_ttp_connect_request(struct ircomm_cb *self,
|
||||
struct sk_buff *userdata,
|
||||
struct ircomm_info *info)
|
||||
{
|
||||
int ret = 0;
|
||||
@@ -129,16 +129,16 @@ static int ircomm_ttp_connect_request(struct ircomm_cb *self,
|
||||
skb_get(userdata);
|
||||
|
||||
ret = irttp_connect_request(self->tsap, info->dlsap_sel,
|
||||
info->saddr, info->daddr, NULL,
|
||||
TTP_SAR_DISABLE, userdata);
|
||||
info->saddr, info->daddr, NULL,
|
||||
TTP_SAR_DISABLE, userdata);
|
||||
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Function ircomm_ttp_connect_response (self, skb)
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
static int ircomm_ttp_connect_response(struct ircomm_cb *self,
|
||||
@@ -147,7 +147,7 @@ static int ircomm_ttp_connect_response(struct ircomm_cb *self,
|
||||
int ret;
|
||||
|
||||
IRDA_DEBUG(4, "%s()\n", __FUNCTION__ );
|
||||
|
||||
|
||||
/* Don't forget to refcount it - should be NULL anyway */
|
||||
if(userdata)
|
||||
skb_get(userdata);
|
||||
@@ -160,14 +160,14 @@ static int ircomm_ttp_connect_response(struct ircomm_cb *self,
|
||||
/*
|
||||
* Function ircomm_ttp_data_request (self, userdata)
|
||||
*
|
||||
* Send IrCOMM data to IrTTP layer. Currently we do not try to combine
|
||||
* control data with pure data, so they will be sent as separate frames.
|
||||
* Send IrCOMM data to IrTTP layer. Currently we do not try to combine
|
||||
* control data with pure data, so they will be sent as separate frames.
|
||||
* Should not be a big problem though, since control frames are rare. But
|
||||
* some of them are sent after connection establishment, so this can
|
||||
* some of them are sent after connection establishment, so this can
|
||||
* increase the latency a bit.
|
||||
*/
|
||||
static int ircomm_ttp_data_request(struct ircomm_cb *self,
|
||||
struct sk_buff *skb,
|
||||
struct sk_buff *skb,
|
||||
int clen)
|
||||
{
|
||||
int ret;
|
||||
@@ -176,7 +176,7 @@ static int ircomm_ttp_data_request(struct ircomm_cb *self,
|
||||
|
||||
IRDA_DEBUG(2, "%s(), clen=%d\n", __FUNCTION__ , clen);
|
||||
|
||||
/*
|
||||
/*
|
||||
* Insert clen field, currently we either send data only, or control
|
||||
* only frames, to make things easier and avoid queueing
|
||||
*/
|
||||
@@ -210,7 +210,7 @@ static int ircomm_ttp_data_indication(void *instance, void *sap,
|
||||
struct ircomm_cb *self = (struct ircomm_cb *) instance;
|
||||
|
||||
IRDA_DEBUG(4, "%s()\n", __FUNCTION__ );
|
||||
|
||||
|
||||
IRDA_ASSERT(self != NULL, return -1;);
|
||||
IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return -1;);
|
||||
IRDA_ASSERT(skb != NULL, return -1;);
|
||||
@@ -224,8 +224,8 @@ static int ircomm_ttp_data_indication(void *instance, void *sap,
|
||||
}
|
||||
|
||||
static void ircomm_ttp_connect_confirm(void *instance, void *sap,
|
||||
struct qos_info *qos,
|
||||
__u32 max_sdu_size,
|
||||
struct qos_info *qos,
|
||||
__u32 max_sdu_size,
|
||||
__u8 max_header_size,
|
||||
struct sk_buff *skb)
|
||||
{
|
||||
@@ -261,7 +261,7 @@ out:
|
||||
* Function ircomm_ttp_connect_indication (instance, sap, qos, max_sdu_size,
|
||||
* max_header_size, skb)
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
static void ircomm_ttp_connect_indication(void *instance, void *sap,
|
||||
@@ -301,11 +301,11 @@ out:
|
||||
/*
|
||||
* Function ircomm_ttp_disconnect_request (self, userdata, info)
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
static int ircomm_ttp_disconnect_request(struct ircomm_cb *self,
|
||||
struct sk_buff *userdata,
|
||||
static int ircomm_ttp_disconnect_request(struct ircomm_cb *self,
|
||||
struct sk_buff *userdata,
|
||||
struct ircomm_info *info)
|
||||
{
|
||||
int ret;
|
||||
@@ -322,10 +322,10 @@ static int ircomm_ttp_disconnect_request(struct ircomm_cb *self,
|
||||
/*
|
||||
* Function ircomm_ttp_disconnect_indication (instance, sap, reason, skb)
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
static void ircomm_ttp_disconnect_indication(void *instance, void *sap,
|
||||
static void ircomm_ttp_disconnect_indication(void *instance, void *sap,
|
||||
LM_REASON reason,
|
||||
struct sk_buff *skb)
|
||||
{
|
||||
@@ -361,7 +361,7 @@ static void ircomm_ttp_flow_indication(void *instance, void *sap,
|
||||
|
||||
IRDA_ASSERT(self != NULL, return;);
|
||||
IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;);
|
||||
|
||||
|
||||
if (self->notify.flow_indication)
|
||||
self->notify.flow_indication(self->notify.instance, self, cmd);
|
||||
}
|
||||
|
Reference in New Issue
Block a user