Commit 972cedf6 authored by Tomas Winkler's avatar Tomas Winkler Committed by 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: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 094dbffe
......@@ -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,
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)
return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment