diff options
author | Mark Brown <broonie@kernel.org> | 2024-02-26 17:20:43 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-02-26 17:20:43 +0000 |
commit | 306904db10e1d839b568809d5c505618062e2d63 (patch) | |
tree | e300eb76de5841f99e88f677fd56e8266be4e13c /sound/soc/meson/axg-fifo.h | |
parent | d34f0c8ee2e30b8a1470ce635289591148552a93 (diff) | |
parent | bf900c85f8a4ef47b868b6345879e35826a4fec1 (diff) | |
download | linux-stable-306904db10e1d839b568809d5c505618062e2d63.tar.gz linux-stable-306904db10e1d839b568809d5c505618062e2d63.tar.bz2 linux-stable-306904db10e1d839b568809d5c505618062e2d63.zip |
ASoC: codecs: Simplify mclk initialization
Merge series from Cezary Rojewski <cezary.rojewski@intel.com>:
The patchset may not cover all codecs found in the codecs/ directory -
noticed a possible improvement and grepped for similar pattern across C
files found in the directory. Those addressed here seem pretty
straightforward.
Most of clk_xxx() functions do check if provided clk-pointer is
non-NULL. These do not check if the pointer is an error-pointer.
Providing such to a clk_xxx() results in a panic.
By utilizing _optional() variant of devm_clk_get() the driver code is
both simplified and more robust. There is no need to remember about
IS_ERR(clk) checks each time mclk is accessed.
Diffstat (limited to 'sound/soc/meson/axg-fifo.h')
0 files changed, 0 insertions, 0 deletions