ALSA: HDA: hdac_ext_stream: use consistent prefixes for variables
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 16 Dec 2021 23:11:28 +0000 (17:11 -0600)
committerTakashi Iwai <tiwai@suse.de>
Sat, 25 Dec 2021 08:11:21 +0000 (09:11 +0100)
commit0f7e5ee62f4c24ca9db58351c86653cc3ee0bd0e
tree0f934d2450213545d74309261f72cdd5d5174ecc
parent12054f0ce8be7d2003ec068ab27c9eb608397b98
ALSA: HDA: hdac_ext_stream: use consistent prefixes for variables

The existing code maximizes confusion by using 'stream' and 'hstream'
variables of different types. Examples:

struct hdac_stream *stream;
struct hdac_ext_stream *stream;
struct hdac_stream *hstream;
struct hdac_ext_stream *hstream;

with some additional copy/paste remains:
struct hdac_ext_stream *azx_dev;

This patch suggests a consistent naming across all 'hdac_ext_stream'
functions. The convention is:

struct hdac_stream *hstream;
struct hdac_ext_stream *hext_stream;

No functionality change - just renaming of variables and more
consistent indentation.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Link: https://lore.kernel.org/r/20211216231128.344321-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/hdaudio_ext.h
sound/hda/ext/hdac_ext_stream.c