[Intel-wired-lan] [PATCH] i40e: fix type discrepancy when handling PTP related LEDs
Piotr Kwapulinski
piotr.kwapulinski at intel.com
Wed Aug 26 13:12:21 UTC 2020
Fix data types when handling LEDs for PTP external clock synchronization.
Interface of i40e_ptp_set_led_hw() updated.
Detected by sparse tool.
Reported-by: kernel test robot <lkp at intel.com>
Reviewed-by: Sylwester Dziedziuch <sylwesterx.dziedziuch at intel.com>
Signed-off-by: Piotr Kwapulinski <piotr.kwapulinski at intel.com>
---
drivers/net/ethernet/intel/i40e/i40e_ptp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/intel/i40e/i40e_ptp.c b/drivers/net/ethernet/intel/i40e/i40e_ptp.c
index 26f583f..98b5315 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_ptp.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_ptp.c
@@ -980,7 +980,7 @@ static void i40e_ptp_set_pin_hw(struct i40e_hw *hw,
**/
static void i40e_ptp_set_led_hw(struct i40e_hw *hw,
unsigned int led,
- enum i40e_ptp_gpio_pin_state state)
+ enum i40e_ptp_led_pin_state state)
{
switch (state) {
case low:
--
2.17.1
More information about the Intel-wired-lan
mailing list