mlxsw: reg: Fix pwm_frequency field size in MFCR register
authorJiri Pirko <jiri@mellanox.com>
Fri, 11 Nov 2016 10:22:53 +0000 (11:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Nov 2016 17:52:17 +0000 (12:52 -0500)
The field is 7bit long. Fix it.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h

index a61ce34ac6d0d2f2306aee3d2e182dfd8586e022..edad7cb624751ae4006a84f45bac2d53d92d1337 100644 (file)
@@ -4424,7 +4424,7 @@ enum mlxsw_reg_mfcr_pwm_frequency {
  * Controls the frequency of the PWM signal.
  * Access: RW
  */
-MLXSW_ITEM32(reg, mfcr, pwm_frequency, 0x00, 0, 6);
+MLXSW_ITEM32(reg, mfcr, pwm_frequency, 0x00, 0, 7);
 
 #define MLXSW_MFCR_TACHOS_MAX 10