mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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:
parent
0a97a3cba2
commit
22e4bd09c4
5 changed files with 15 additions and 15 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue