diff options
author | sjur.brandeland@stericsson.com <sjur.brandeland@stericsson.com> | 2011-11-30 04:22:48 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-30 23:30:48 -0500 |
commit | e977b4cf637ebb545db14bff76d590490b2fb4bf (patch) | |
tree | 97be37eb44c04150cfc521ebbf6f88a5b0ea9efb | |
parent | 7c18d2205ea76eef9674e59e1ecae4f332a53e9e (diff) |
caif: Remove unused enum and parameter in cfserl
Remove unused enum cfcnfg_phy_type and the parameter to cfserl_create.
Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/caif/cfcnfg.h | 14 | ||||
-rw-r--r-- | include/net/caif/cfserl.h | 4 | ||||
-rw-r--r-- | net/caif/caif_dev.c | 2 | ||||
-rw-r--r-- | net/caif/cfserl.c | 3 |
4 files changed, 4 insertions, 19 deletions
diff --git a/include/net/caif/cfcnfg.h b/include/net/caif/cfcnfg.h index a421723e986f..90b4ff8bad83 100644 --- a/include/net/caif/cfcnfg.h +++ b/include/net/caif/cfcnfg.h | |||
@@ -14,18 +14,6 @@ | |||
14 | struct cfcnfg; | 14 | struct cfcnfg; |
15 | 15 | ||
16 | /** | 16 | /** |
17 | * enum cfcnfg_phy_type - Types of physical layers defined in CAIF Stack | ||
18 | * | ||
19 | * @CFPHYTYPE_FRAG: Fragmented frames physical interface. | ||
20 | * @CFPHYTYPE_CAIF: Generic CAIF physical interface | ||
21 | */ | ||
22 | enum cfcnfg_phy_type { | ||
23 | CFPHYTYPE_FRAG = 1, | ||
24 | CFPHYTYPE_CAIF, | ||
25 | CFPHYTYPE_MAX | ||
26 | }; | ||
27 | |||
28 | /** | ||
29 | * enum cfcnfg_phy_preference - Physical preference HW Abstraction | 17 | * enum cfcnfg_phy_preference - Physical preference HW Abstraction |
30 | * | 18 | * |
31 | * @CFPHYPREF_UNSPECIFIED: Default physical interface | 19 | * @CFPHYPREF_UNSPECIFIED: Default physical interface |
@@ -66,8 +54,6 @@ void cfcnfg_remove(struct cfcnfg *cfg); | |||
66 | * cfcnfg_add_phy_layer() - Adds a physical layer to the CAIF stack. | 54 | * cfcnfg_add_phy_layer() - Adds a physical layer to the CAIF stack. |
67 | * @cnfg: Pointer to a CAIF configuration object, created by | 55 | * @cnfg: Pointer to a CAIF configuration object, created by |
68 | * cfcnfg_create(). | 56 | * cfcnfg_create(). |
69 | * @phy_type: Specifies the type of physical interface, e.g. | ||
70 | * CFPHYTYPE_FRAG. | ||
71 | * @dev: Pointer to link layer device | 57 | * @dev: Pointer to link layer device |
72 | * @phy_layer: Specify the physical layer. The transmit function | 58 | * @phy_layer: Specify the physical layer. The transmit function |
73 | * MUST be set in the structure. | 59 | * MUST be set in the structure. |
diff --git a/include/net/caif/cfserl.h b/include/net/caif/cfserl.h index b8374321b362..f121299a3427 100644 --- a/include/net/caif/cfserl.h +++ b/include/net/caif/cfserl.h | |||
@@ -8,5 +8,5 @@ | |||
8 | #define CFSERL_H_ | 8 | #define CFSERL_H_ |
9 | #include <net/caif/caif_layer.h> | 9 | #include <net/caif/caif_layer.h> |
10 | 10 | ||
11 | struct cflayer *cfserl_create(int type, int instance, bool use_stx); | 11 | struct cflayer *cfserl_create(int instance, bool use_stx); |
12 | #endif /* CFSERL_H_ */ | 12 | #endif |
diff --git a/net/caif/caif_dev.c b/net/caif/caif_dev.c index 70034c017825..f7e8c70b343c 100644 --- a/net/caif/caif_dev.c +++ b/net/caif/caif_dev.c | |||
@@ -295,7 +295,7 @@ static int caif_device_notify(struct notifier_block *me, unsigned long what, | |||
295 | if (caifdev->use_frag) { | 295 | if (caifdev->use_frag) { |
296 | head_room = 1; | 296 | head_room = 1; |
297 | link_support = cfserl_create(dev->ifindex, | 297 | link_support = cfserl_create(dev->ifindex, |
298 | CFPHYTYPE_FRAG, caifdev->use_stx); | 298 | caifdev->use_stx); |
299 | if (!link_support) { | 299 | if (!link_support) { |
300 | pr_warn("Out of memory\n"); | 300 | pr_warn("Out of memory\n"); |
301 | break; | 301 | break; |
diff --git a/net/caif/cfserl.c b/net/caif/cfserl.c index 797c8d165993..8e68b97f13ee 100644 --- a/net/caif/cfserl.c +++ b/net/caif/cfserl.c | |||
@@ -31,7 +31,7 @@ static int cfserl_transmit(struct cflayer *layr, struct cfpkt *pkt); | |||
31 | static void cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, | 31 | static void cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, |
32 | int phyid); | 32 | int phyid); |
33 | 33 | ||
34 | struct cflayer *cfserl_create(int type, int instance, bool use_stx) | 34 | struct cflayer *cfserl_create(int instance, bool use_stx) |
35 | { | 35 | { |
36 | struct cfserl *this = kzalloc(sizeof(struct cfserl), GFP_ATOMIC); | 36 | struct cfserl *this = kzalloc(sizeof(struct cfserl), GFP_ATOMIC); |
37 | if (!this) | 37 | if (!this) |
@@ -40,7 +40,6 @@ struct cflayer *cfserl_create(int type, int instance, bool use_stx) | |||
40 | this->layer.receive = cfserl_receive; | 40 | this->layer.receive = cfserl_receive; |
41 | this->layer.transmit = cfserl_transmit; | 41 | this->layer.transmit = cfserl_transmit; |
42 | this->layer.ctrlcmd = cfserl_ctrlcmd; | 42 | this->layer.ctrlcmd = cfserl_ctrlcmd; |
43 | this->layer.type = type; | ||
44 | this->usestx = use_stx; | 43 | this->usestx = use_stx; |
45 | spin_lock_init(&this->sync); | 44 | spin_lock_init(&this->sync); |
46 | snprintf(this->layer.name, CAIF_LAYER_NAME_SZ, "ser1"); | 45 | snprintf(this->layer.name, CAIF_LAYER_NAME_SZ, "ser1"); |