linux/sound/soc/intel
Mark Brown b7a253db0a
ASoC: Intel: avs: Replace devm_kzalloc() with
Merge series from Ethan Carter Edwards <ethan@ethancedwards.com>:

Open coded arithmetic in allocator arguments is discouraged. Helper
functions like kcalloc or, in this case, devm_kcalloc are preferred. Not
only for readability purposes but safety purposes.

The changes move `devm_kzalloc(dev, sizeof(var) * n, GFP_KERNEL)` to
the helper function `devm_kcalloc(dev, n, sizeof(var), GFP_KERNEL)`.

Here is a series of four patches within the Intel/avs drivers that make
these changes. They are all compile tested only but should have no
effect on runtime behaviour.

Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#open-coded-arithmetic-in-allocator-arguments
Link: https://github.com/KSPP/linux/issues/162
History 2025-03-18 15:34:29 +00:00
..
atom ASoC: Intel: sst: Fix used of uninitialized ctx to log an error 2024-10-28 16:44:52 +00:00
avs ASoC: Intel: avs: Replace devm_kzalloc() with 2025-03-18 15:34:29 +00:00
boards ASoC: Intel: sof_sdw: Fix unlikely uninitialized variable use in create_sdw_dailinks() 2025-03-03 13:03:08 +00:00
catpt ASoC: intel: catpt: Convert to RUNTIME_PM_OPS() & co 2025-03-17 10:14:42 +00:00
common ASoC: Intel: soc-acpi-intel-ptl-match: Add cs42l43 support 2025-03-11 13:17:21 +00:00
keembay ASoC: Use of_property_present() for non-boolean properties 2025-01-09 18:50:14 +00:00
Kconfig ASoC: Intel: Kconfig: Revert make SND_SOC_ACPI_INTEL_MATCH depend on ACPI 2024-11-08 13:35:27 +00:00
Makefile ASoC: Intel: Remove skylake driver 2024-08-19 13:10:55 +01:00