Skip to content

Commit e977b4c

Browse files
sjur.brandeland@stericsson.comdavem330
authored andcommitted
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>
1 parent 7c18d22 commit e977b4c

4 files changed

Lines changed: 4 additions & 19 deletions

File tree

‎include/net/caif/cfcnfg.h‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,6 @@
1313

1414
struct cfcnfg;
1515

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-
2816
/**
2917
* enum cfcnfg_phy_preference - Physical preference HW Abstraction
3018
*
@@ -66,8 +54,6 @@ void cfcnfg_remove(struct cfcnfg *cfg);
6654
* cfcnfg_add_phy_layer() - Adds a physical layer to the CAIF stack.
6755
* @cnfg: Pointer to a CAIF configuration object, created by
6856
* cfcnfg_create().
69-
* @phy_type: Specifies the type of physical interface, e.g.
70-
* CFPHYTYPE_FRAG.
7157
* @dev: Pointer to link layer device
7258
* @phy_layer: Specify the physical layer. The transmit function
7359
* MUST be set in the structure.

‎include/net/caif/cfserl.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
#define CFSERL_H_
99
#include <net/caif/caif_layer.h>
1010

11-
struct cflayer *cfserl_create(int type, int instance, bool use_stx);
12-
#endif /* CFSERL_H_ */
11+
struct cflayer *cfserl_create(int instance, bool use_stx);
12+
#endif

‎net/caif/caif_dev.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ static int caif_device_notify(struct notifier_block *me, unsigned long what,
295295
if (caifdev->use_frag) {
296296
head_room = 1;
297297
link_support = cfserl_create(dev->ifindex,
298-
CFPHYTYPE_FRAG, caifdev->use_stx);
298+
caifdev->use_stx);
299299
if (!link_support) {
300300
pr_warn("Out of memory\n");
301301
break;

‎net/caif/cfserl.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static int cfserl_transmit(struct cflayer *layr, struct cfpkt *pkt);
3131
static void cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
3232
int phyid);
3333

34-
struct cflayer *cfserl_create(int type, int instance, bool use_stx)
34+
struct cflayer *cfserl_create(int instance, bool use_stx)
3535
{
3636
struct cfserl *this = kzalloc(sizeof(struct cfserl), GFP_ATOMIC);
3737
if (!this)
@@ -40,7 +40,6 @@ struct cflayer *cfserl_create(int type, int instance, bool use_stx)
4040
this->layer.receive = cfserl_receive;
4141
this->layer.transmit = cfserl_transmit;
4242
this->layer.ctrlcmd = cfserl_ctrlcmd;
43-
this->layer.type = type;
4443
this->usestx = use_stx;
4544
spin_lock_init(&this->sync);
4645
snprintf(this->layer.name, CAIF_LAYER_NAME_SZ, "ser1");

0 commit comments

Comments
 (0)