From: Jiri Pirko Date: Fri, 11 Nov 2016 10:22:53 +0000 (+0100) Subject: mlxsw: reg: Fix pwm_frequency field size in MFCR register X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f7ad3d4b83e694347cddc96d956143068bef32c9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mlxsw: reg: Fix pwm_frequency field size in MFCR register The field is 7bit long. Fix it. Signed-off-by: Jiri Pirko Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/mellanox/mlxsw/reg.h b/drivers/net/ethernet/mellanox/mlxsw/reg.h index a61ce34ac6d0..edad7cb62475 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/reg.h +++ b/drivers/net/ethernet/mellanox/mlxsw/reg.h @@ -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