lkml.org 
[lkml]   [2021]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] ASoC: tegra: Constify static snd_soc_dai_ops structs
From
Date


On 9/23/2021 2:24 AM, Rikard Falkeborn wrote:
> The only usage of these is to assign their address to the ops field in
> the snd_soc_dai_driver struct, which is a pointer to const. Make them
> const to allow the compiler to put them in read-only memory.
>
> Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
> ---
> sound/soc/tegra/tegra210_adx.c | 4 ++--
> sound/soc/tegra/tegra210_amx.c | 4 ++--
> sound/soc/tegra/tegra210_mixer.c | 4 ++--
> sound/soc/tegra/tegra210_mvc.c | 2 +-
> sound/soc/tegra/tegra210_sfc.c | 4 ++--
> 5 files changed, 9 insertions(+), 9 deletions(-)
>

Thank you Rikard for the patch.

Acked-by: Sameer Pujar <spujar@nvidia.com>

\
 
 \ /
  Last update: 2021-09-23 06:21    [W:0.158 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site