OSDN Git Service

ice: add const qualifier to mac_addr parameter
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 19 Dec 2018 18:03:34 +0000 (10:03 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 15 Jan 2019 20:42:38 +0000 (12:42 -0800)
commitd671e3e0dac9f637e2f49178923b7a0ac435e447
tree6e72e47a535120378571600287cf7890bd1648f0
parentaef74145f088478aa4ff3834395015b6a742c15a
ice: add const qualifier to mac_addr parameter

The function ice_aq_manage_mac_write takes a pointer to a MAC address.
The parameter is not marked const, even though the function doesn't need
to modify it. This prevents passing a parameter that is already marked
const. Update the function prototype to take a const pointer, to allow
passing constant pointers to this function.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_common.c
drivers/net/ethernet/intel/ice/ice_common.h