Skip to content
Commit 5da1a888 authored by Brett Creeley's avatar Brett Creeley Committed by Yongxin Liu
Browse files

ice: Add ice_pf_to_dev(pf) macro

commit 4015d11e

 upstream.

We use &pf->dev->pdev all over the code. Add a simple
macro to do this for us. When multiple de-references
like this are being done add a local struct device
variable.

Signed-off-by: default avatarBrett Creeley <brett.creeley@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarYongxin Liu <yongxin.liu@windriver.com>
parent e7ab5ccd
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