mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00: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
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue