linux_dsm_epyc7002/sound/soc/intel/skylake
Gustavo A. R. Silva d00cc2f16a
ASoC: Intel: Skylake: Use struct_size() helper
Make use of the struct_size() helper instead of an open-coded version
in order to avoid any potential type mistakes, in particular in the
context in which this code is being used.

So, replace the following form:

uuid_params->num_modules * sizeof(struct skl_mod_inst_map) + sizeof(uuid_params->num_modules)

with:

struct_size(params, u.map, uuid_params->num_modules)

and so on...

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-05-24 13:01:38 +01:00
..
bxt-sst.c ASoC: Intel: Skylake: Request IRQ late only after all context are initialized 2017-12-20 10:48:06 +00:00
cnl-sst-dsp.c ASoC: Intel: cnl: Add cnl dsp functions and registers 2017-08-03 11:07:23 +01:00
cnl-sst-dsp.h ASoC: Intel: cnl: Add sst library functions for cnl platform 2017-08-03 11:07:33 +01:00
cnl-sst.c ASoC: Intel: Skylake: Request IRQ late only after all context are initialized 2017-12-20 10:48:06 +00:00
Makefile ASoC: Intel: Skylake: Add ssp clock driver 2018-01-26 12:51:21 +00:00
skl-debug.c ASoC: topology: Move skl-tplg-interface.h to uapi 2018-06-01 18:09:17 +01:00
skl-i2s.h ASoC: Intel: Skylake: Add extended I2S config blob support in Clock driver 2018-01-26 12:51:22 +00:00
skl-messages.c ASoC: Intel: Skylake: Add Cometlake PCI IDs 2019-05-13 12:42:15 +01:00
skl-nhlt.c ASoC: Intel: Skylake: add error logs on probe, remove dependency on NHLT 2018-12-13 15:36:19 +00:00
skl-nhlt.h ASoC: Intel: Skylake: Add api to retrieve dmic array info from nhlt 2016-05-30 18:16:44 +01:00
skl-pcm.c ASoC: core: conditionally increase module refcount on component open 2019-04-08 14:15:44 +07:00
skl-ssp-clk.c ASoC: Intel: Skylake: make function skl_clk_round_rate static 2018-02-12 09:32:32 +00:00
skl-ssp-clk.h ASoC: Intel: Skylake: Add ssp clock driver 2018-01-26 12:51:21 +00:00
skl-sst-cldma.c ASoC: Intel: Skylake: BDL definitions should be __le32 2018-07-25 17:21:11 +01:00
skl-sst-cldma.h ASoC: Intel: Skylake: BDL definitions should be __le32 2018-07-25 17:21:11 +01:00
skl-sst-dsp.c ASoC: Intel: Skylake: Request IRQ late only after all context are initialized 2017-12-20 10:48:06 +00:00
skl-sst-dsp.h ASoC: Intel: Skylake: Unify the fw ops for SKL and KBL 2018-04-17 11:35:10 +01:00
skl-sst-ipc.c ASoC: Intel: Skylake: Add FW reply for MCLK/SCLK IPC 2018-11-28 12:36:44 +00:00
skl-sst-ipc.h ASoC: Intel: Skylake: Disable clock and power gating during FW/LIB download 2018-03-13 09:29:14 -07:00
skl-sst-utils.c Merge branch 'fix/intel' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-intel 2018-01-08 15:54:50 +00:00
skl-sst.c ASoC: Intel: Skylake: Unify the fw ops for SKL and KBL 2018-04-17 11:35:10 +01:00
skl-topology.c ASoC: Intel: Skylake: Use struct_size() helper 2019-05-24 13:01:38 +01:00
skl-topology.h Merge branch 'topic/drm_audio_component' of https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound into asoc-4.19 2018-08-01 10:32:05 +01:00
skl.c ASoC: Intel: Skylake: Add Cometlake PCI IDs 2019-05-13 12:42:15 +01:00
skl.h ASoC: Intel: fix interface for Chromebook machine drivers 2018-11-20 16:56:25 +00:00