• Pierre-Louis Bossart's avatar
    ASoC: mediatek: mt2701: align function prototype · 57f1379e
    Pierre-Louis Bossart authored
    cppcheck warnings:
    
    sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c:102:30:
    style:inconclusive: Function 'mt2701_afe_enable_i2s' argument 2 names
    different: declaration 'path' definition
    'i2s_path'. [funcArgNamesDifferent]
         struct mt2701_i2s_path *i2s_path,
                                 ^
    sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.h:21:30: note:
    Function 'mt2701_afe_enable_i2s' argument 2 names different:
    declaration 'path' definition 'i2s_path'.
         struct mt2701_i2s_path *path,
                                 ^
    sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c:102:30: note:
    Function 'mt2701_afe_enable_i2s' argument 2 names different:
    declaration 'path' definition 'i2s_path'.
    
         struct mt2701_i2s_path *i2s_path,
                                 ^
    sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c:128:32:
    style:inconclusive: Function 'mt2701_afe_disable_i2s' argument 2 names
    different: declaration 'path' definition
    'i2s_path'. [funcArgNamesDifferent]
           struct mt2701_i2s_path *i2s_path,
                                   ^
    sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.h:24:32: note:
    Function 'mt2701_afe_disable_i2s' argument 2 names different:
    declaration 'path' definition 'i2s_path'.
           struct mt2701_i2s_path *path,
                                   ^
    sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c:128:32: note:
    Function 'mt2701_afe_disable_i2s' argument 2 names different:
    declaration 'path' definition 'i2s_path'.
           struct mt2701_i2s_path *i2s_path,
                                   ^
    Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Link: https://lore.kernel.org/r/20210311004904.121205-3-pierre-louis.bossart@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
    57f1379e
mt2701-afe-clock-ctrl.h 1.03 KB