Skip to content

Commit

Permalink
NFC: Move struct nfc_phy_ops out of HCI up to nfc core level
Browse files Browse the repository at this point in the history
struct nfc_phy_ops is not an HCI structure only, it can also be used by
NCI or direct NFC Core drivers.

Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Eric Lapuyade authored and Samuel Ortiz committed Sep 24, 2013
1 parent d593751 commit 08f13ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 0 additions & 6 deletions include/net/nfc/hci.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@

#include <net/nfc/nfc.h>

struct nfc_phy_ops {
int (*write)(void *dev_id, struct sk_buff *skb);
int (*enable)(void *dev_id);
void (*disable)(void *dev_id);
};

struct nfc_hci_dev;

struct nfc_hci_ops {
Expand Down
6 changes: 6 additions & 0 deletions include/net/nfc/nfc.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
#define nfc_info(dev, fmt, ...) dev_info((dev), "NFC: " fmt, ##__VA_ARGS__)
#define nfc_err(dev, fmt, ...) dev_err((dev), "NFC: " fmt, ##__VA_ARGS__)

struct nfc_phy_ops {
int (*write)(void *dev_id, struct sk_buff *skb);
int (*enable)(void *dev_id);
void (*disable)(void *dev_id);
};

struct nfc_dev;

/**
Expand Down

0 comments on commit 08f13ac

Please sign in to comment.