mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 01:34:00 +08:00
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: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
094dbffedc
commit
972cedf6e3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user