NFC: nci: rename nci_prop_ops to nci_driver_ops

Initially it was used to create hooks in the driver for
proprietary operations. Currently it is being used for hooks
for both proprietary and generic operations.

Signed-off-by: Robert Dolca <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
Robert Dolca 2015-10-22 12:11:39 +03:00 • committed by Samuel Ortiz
commit 22e4bd09c4
5 changed files with 15 additions and 15 deletions

View file

@ -1242,12 +1242,12 @@ int nci_send_cmd(struct nci_dev *ndev, __u16 opcode, __u8 plen, void *payload)
}
/* Proprietary commands API */
static struct nci_prop_ops *ops_cmd_lookup(struct nci_prop_ops *ops,
size_t n_ops,
__u16 opcode)
static struct nci_driver_ops *ops_cmd_lookup(struct nci_driver_ops *ops,
size_t n_ops,
__u16 opcode)
{
size_t i;
struct nci_prop_ops *op;
struct nci_driver_ops *op;
if (!ops || !n_ops)
return NULL;
@ -1262,10 +1262,10 @@ static struct nci_prop_ops *ops_cmd_lookup(struct nci_prop_ops *ops,
}
static int nci_op_rsp_packet(struct nci_dev *ndev, __u16 rsp_opcode,
struct sk_buff *skb, struct nci_prop_ops *ops,
struct sk_buff *skb, struct nci_driver_ops *ops,
size_t n_ops)
{
struct nci_prop_ops *op;
struct nci_driver_ops *op;
op = ops_cmd_lookup(ops, n_ops, rsp_opcode);
if (!op || !op->rsp)
@ -1275,10 +1275,10 @@ static int nci_op_rsp_packet(struct nci_dev *ndev, __u16 rsp_opcode,
}
static int nci_op_ntf_packet(struct nci_dev *ndev, __u16 ntf_opcode,
struct sk_buff *skb, struct nci_prop_ops *ops,
struct sk_buff *skb, struct nci_driver_ops *ops,
size_t n_ops)
{
struct nci_prop_ops *op;
struct nci_driver_ops *op;
op = ops_cmd_lookup(ops, n_ops, ntf_opcode);
if (!op || !op->ntf)