Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 972cedf6 authored by Tomas Winkler's avatar Tomas Winkler Committed by Greg Kroah-Hartman
Browse files

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
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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;