提交 972cedf6 编写于 作者: T Tomas Winkler 提交者: Greg Kroah-Hartman

nfc: mei_phy: get phy from the driver data

In order to remove rather redundant context from the callback
signature we the get nfc mei_phy from the driver's data.
Signed-off-by: NTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 094dbffe
...@@ -300,7 +300,10 @@ static int mei_nfc_recv(struct nfc_mei_phy *phy, u8 *buf, size_t length) ...@@ -300,7 +300,10 @@ static int mei_nfc_recv(struct nfc_mei_phy *phy, u8 *buf, size_t length)
static void nfc_mei_event_cb(struct mei_cl_device *cldev, u32 events, static void nfc_mei_event_cb(struct mei_cl_device *cldev, u32 events,
void *context) void *context)
{ {
struct nfc_mei_phy *phy = context; struct nfc_mei_phy *phy = mei_cldev_get_drvdata(cldev);
if (!phy)
return;
if (phy->hard_fault != 0) if (phy->hard_fault != 0)
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册