• Fabio Estevam's avatar
    ASoC: fsl_ssi: Use u32 variable type when using regmap_read() · 671f8204
    Fabio Estevam authored
    Convert the sisr and sisr2 variable types to u32 to avoid the following
    sparse warnings:
    
    sound/soc/fsl/fsl_ssi.c:391:42: warning: incorrect type in argument 3 (different base types)
    sound/soc/fsl/fsl_ssi.c:391:42:    expected unsigned int *val
    sound/soc/fsl/fsl_ssi.c:391:42:    got restricted __be32 *<noident>
    sound/soc/fsl/fsl_ssi.c:393:17: warning: restricted __be32 degrades to integer
    sound/soc/fsl/fsl_ssi.c:393:15: warning: incorrect type in assignment (different base types)
    sound/soc/fsl/fsl_ssi.c:393:15:    expected restricted __be32 [usertype] sisr2
    sound/soc/fsl/fsl_ssi.c:393:15:    got unsigned int
    sound/soc/fsl/fsl_ssi.c:396:50: warning: incorrect type in argument 3 (different base types)
    sound/soc/fsl/fsl_ssi.c:396:50:    expected unsigned int [unsigned] val
    sound/soc/fsl/fsl_ssi.c:396:50:    got restricted __be32 [usertype] sisr2
    sound/soc/fsl/fsl_ssi.c:398:42: warning: incorrect type in argument 2 (different base types)
    sound/soc/fsl/fsl_ssi.c:398:42:    expected unsigned int [unsigned] [usertype] sisr
    sound/soc/fsl/fsl_ssi.c:398:42:    got restricted __be32 [addressable] [usertype] sisr
    
    In other places where regmap_read() is used a u32 variable is passed
    to store the register read value, so do the same here as well.
    
    regmap API already takes care of endianness, so the usage of u32 is safe.
    Signed-off-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    671f8204
fsl_ssi.c 46.2 KB