Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278309
b: refs/heads/master
c: e977b4c
h: refs/heads/master
i:
  278307: 8b2c0db
v: v3
  • Loading branch information
sjur.brandeland@stericsson.com authored and David S. Miller committed Dec 1, 2011
1 parent 7c203ca commit 42122a9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7c18d2205ea76eef9674e59e1ecae4f332a53e9e
refs/heads/master: e977b4cf637ebb545db14bff76d590490b2fb4bf
14 changes: 0 additions & 14 deletions trunk/include/net/caif/cfcnfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,6 @@

struct cfcnfg;

/**
* enum cfcnfg_phy_type - Types of physical layers defined in CAIF Stack
*
* @CFPHYTYPE_FRAG: Fragmented frames physical interface.
* @CFPHYTYPE_CAIF: Generic CAIF physical interface
*/
enum cfcnfg_phy_type {
CFPHYTYPE_FRAG = 1,
CFPHYTYPE_CAIF,
CFPHYTYPE_MAX
};

/**
* enum cfcnfg_phy_preference - Physical preference HW Abstraction
*
Expand Down Expand Up @@ -66,8 +54,6 @@ void cfcnfg_remove(struct cfcnfg *cfg);
* cfcnfg_add_phy_layer() - Adds a physical layer to the CAIF stack.
* @cnfg: Pointer to a CAIF configuration object, created by
* cfcnfg_create().
* @phy_type: Specifies the type of physical interface, e.g.
* CFPHYTYPE_FRAG.
* @dev: Pointer to link layer device
* @phy_layer: Specify the physical layer. The transmit function
* MUST be set in the structure.
Expand Down
4 changes: 2 additions & 2 deletions trunk/include/net/caif/cfserl.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
#define CFSERL_H_
#include <net/caif/caif_layer.h>

struct cflayer *cfserl_create(int type, int instance, bool use_stx);
#endif /* CFSERL_H_ */
struct cflayer *cfserl_create(int instance, bool use_stx);
#endif
2 changes: 1 addition & 1 deletion trunk/net/caif/caif_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ static int caif_device_notify(struct notifier_block *me, unsigned long what,
if (caifdev->use_frag) {
head_room = 1;
link_support = cfserl_create(dev->ifindex,
CFPHYTYPE_FRAG, caifdev->use_stx);
caifdev->use_stx);
if (!link_support) {
pr_warn("Out of memory\n");
break;
Expand Down
3 changes: 1 addition & 2 deletions trunk/net/caif/cfserl.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static int cfserl_transmit(struct cflayer *layr, struct cfpkt *pkt);
static void cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
int phyid);

struct cflayer *cfserl_create(int type, int instance, bool use_stx)
struct cflayer *cfserl_create(int instance, bool use_stx)
{
struct cfserl *this = kzalloc(sizeof(struct cfserl), GFP_ATOMIC);
if (!this)
Expand All @@ -40,7 +40,6 @@ struct cflayer *cfserl_create(int type, int instance, bool use_stx)
this->layer.receive = cfserl_receive;
this->layer.transmit = cfserl_transmit;
this->layer.ctrlcmd = cfserl_ctrlcmd;
this->layer.type = type;
this->usestx = use_stx;
spin_lock_init(&this->sync);
snprintf(this->layer.name, CAIF_LAYER_NAME_SZ, "ser1");
Expand Down

0 comments on commit 42122a9

Please sign in to comment.