ASoC: cs35l56: Use pm_ptr()
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Thu, 14 Sep 2023 15:09:16 +0000 (16:09 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 14 Sep 2023 15:12:47 +0000 (16:12 +0100)
commit3d3a86679541044a65ea23175cb95206921c8fe2
tree7cae87ab8382b1e2d7ee1bd9e977864d90e90a7d
parent353bc9924cb1b7176fdc4ebb3610306398f41c94
ASoC: cs35l56: Use pm_ptr()

Use pm_ptr() when setting the pointer to the dev_pm_ops so that it
will be NULL if CONFIG_PM is disabled. This allows the dev_pm_ops to be
compiled out in that case.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230914150918.14505-2-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l56-i2c.c
sound/soc/codecs/cs35l56-sdw.c
sound/soc/codecs/cs35l56-spi.c