Searched hist:"410 fe39c" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/sound/soc/codecs/ |
H A D | cs35l33.c | 410fe39c Wed Jun 29 19:13:34 CDT 2016 Axel Lin <axel.lin@ingics.com> ASoC: cs35l33: Fix testing return value of devm_gpiod_get_optional
devm_gpiod_get_optional() returns NULL when the gpio is not assigned. So the if (PTR_ERR(cs35l33->reset_gpio) == -ENOENT) test is always false.
Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Paul Handrigan <Paul.Handrigan@cirrus.com> Signed-off-by: Mark Brown <broonie@kernel.org> 410fe39c Wed Jun 29 19:13:34 CDT 2016 Axel Lin <axel.lin@ingics.com> ASoC: cs35l33: Fix testing return value of devm_gpiod_get_optional devm_gpiod_get_optional() returns NULL when the gpio is not assigned. So the if (PTR_ERR(cs35l33->reset_gpio) == -ENOENT) test is always false. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Paul Handrigan <Paul.Handrigan@cirrus.com> Signed-off-by: Mark Brown <broonie@kernel.org>
|