• Pierre-Louis Bossart's avatar
    ASoC: wcd-clsh-v2: align function prototypes · 77af06de
    Pierre-Louis Bossart authored
    cppcheck warnings:
    
    sound/soc/codecs/wcd-clsh-v2.c:523:28: style:inconclusive: Function
    'wcd_clsh_ctrl_set_state' argument 2 names different: declaration
    'event' definition 'clsh_event'. [funcArgNamesDifferent]
           enum wcd_clsh_event clsh_event,
                               ^
    sound/soc/codecs/wcd-clsh-v2.h:45:28: note: Function
    'wcd_clsh_ctrl_set_state' argument 2 names different: declaration
    'event' definition 'clsh_event'.
           enum wcd_clsh_event event,
                               ^
    sound/soc/codecs/wcd-clsh-v2.c:523:28: note: Function
    'wcd_clsh_ctrl_set_state' argument 2 names different: declaration
    'event' definition 'clsh_event'.
           enum wcd_clsh_event clsh_event,
                               ^
    sound/soc/codecs/wcd-clsh-v2.c:524:12: style:inconclusive: Function
    'wcd_clsh_ctrl_set_state' argument 3 names different: declaration
    'state' definition 'nstate'. [funcArgNamesDifferent]
           int nstate,
               ^
    sound/soc/codecs/wcd-clsh-v2.h:46:12: note: Function
    'wcd_clsh_ctrl_set_state' argument 3 names different: declaration
    'state' definition 'nstate'.
           int state,
               ^
    sound/soc/codecs/wcd-clsh-v2.c:524:12: note: Function
    'wcd_clsh_ctrl_set_state' argument 3 names different: declaration
    'state' definition 'nstate'.
           int nstate,
               ^
    sound/soc/codecs/wcd-clsh-v2.c:557:69: style:inconclusive: Function
    'wcd_clsh_ctrl_alloc' argument 1 names different: declaration
    'component' definition 'comp'. [funcArgNamesDifferent]
    struct wcd_clsh_ctrl *wcd_clsh_ctrl_alloc(struct snd_soc_component *comp,
                                                                        ^
    sound/soc/codecs/wcd-clsh-v2.h:40:31: note: Function
    'wcd_clsh_ctrl_alloc' argument 1 names different: declaration
    'component' definition 'comp'.
        struct snd_soc_component *component,
                                  ^
    sound/soc/codecs/wcd-clsh-v2.c:557:69: note: Function
    'wcd_clsh_ctrl_alloc' argument 1 names different: declaration
    'component' definition 'comp'.
    struct wcd_clsh_ctrl *wcd_clsh_ctrl_alloc(struct snd_soc_component *comp,
                                                                        ^
    Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Reviewed-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
    Link: https://lore.kernel.org/r/20210218222916.89809-8-pierre-louis.bossart@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
    77af06de
wcd-clsh-v2.h 1.26 KB