[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <352b5f57-baa5-8905-4ac9-1281268270a8@gmail.com>
Date: Fri, 2 Oct 2020 00:02:22 +0300
From: Dmitry Osipenko <digetx@...il.com>
To: Sameer Pujar <spujar@...dia.com>, broonie@...nel.org,
lgirdwood@...il.com, robh+dt@...nel.org,
kuninori.morimoto.gx@...esas.com,
pierre-louis.bossart@...ux.intel.com, perex@...ex.cz,
tiwai@...e.com, thierry.reding@...il.com, jonathanh@...dia.com
Cc: alsa-devel@...a-project.org, devicetree@...r.kernel.org,
linux-tegra@...r.kernel.org, linux-kernel@...r.kernel.org,
sharadg@...dia.com, mkumard@...dia.com, viswanathl@...dia.com,
rlokhande@...dia.com, dramesh@...dia.com, atalambedu@...dia.com,
nwartikar@...dia.com, swarren@...dia.com, nicoleotsuka@...il.com
Subject: Re: [PATCH v3 10/13] ASoC: tegra: Add audio graph based card driver
01.10.2020 23:57, Dmitry Osipenko пишет:
> 01.10.2020 20:33, Sameer Pujar пишет:
>> +/* Setup PLL clock as per the given sample rate */
>> +static int tegra_audio_graph_update_pll(struct snd_pcm_substream *substream,
>> + struct snd_pcm_hw_params *params)
>> +{
>> + struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
>> + struct asoc_simple_priv *priv = snd_soc_card_get_drvdata(rtd->card);
>> + struct device *dev = rtd->card->dev;
>> + struct tegra_audio_graph_data *graph_data =
>> + (struct tegra_audio_graph_data *)priv->data;
>> + struct tegra_audio_chip_data *chip_data =
>> + (struct tegra_audio_chip_data *)of_device_get_match_data(dev);
>
> void* doesn't need casting
>
There are several similar places in the code. Not a big deal, but this
makes code less readable than it could be.
Powered by blists - more mailing lists