commit | 4015d11e4b9720718de7df28d25c04d08d8b6226 | [log] [tgz] |
---|---|---|
author | Brett Creeley <brett.creeley@intel.com> | Fri Nov 08 06:23:26 2019 -0800 |
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | Fri Nov 22 13:15:17 2019 -0800 |
tree | dff3fc55ea8b6e5ec0a80c6c4f2d6c402915cfc7 | |
parent | 9efe35d0db84cb7189e4a2c3d6a50eefd4380ff9 [diff] |
ice: Add ice_pf_to_dev(pf) macro 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: Brett Creeley <brett.creeley@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>