• Rob Herring's avatar
    ASoC: Use of_node_name_eq for node name comparisons · 1d52a74e
    Rob Herring authored
    Convert string compares of DT node names to use of_node_name_eq helper
    instead. This removes direct access to the node name pointer.
    
    For the FSL ASoC card, the full node names appear to be "ssi", "esai",
    and "sai", so there's not any reason to use strstr and of_node_name_eq
    can be used instead.
    
    Cc: Timur Tabi <timur@kernel.org>
    Cc: Nicolin Chen <nicoleotsuka@gmail.com>
    Cc: Xiubo Li <Xiubo.Lee@gmail.com>
    Cc: Fabio Estevam <fabio.estevam@nxp.com>
    Cc: Liam Girdwood <lgirdwood@gmail.com>
    Cc: Mark Brown <broonie@kernel.org>
    Cc: Jaroslav Kysela <perex@perex.cz>
    Cc: Takashi Iwai <tiwai@suse.com>
    Cc: alsa-devel@alsa-project.org
    Cc: linuxppc-dev@lists.ozlabs.org
    Signed-off-by: default avatarRob Herring <robh@kernel.org>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    1d52a74e
simple-scu-card.c 8.66 KB