]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: tas5805m: Improve a size determination in tas5805m_i2c_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 16 Sep 2024 08:20:12 +0000 (10:20 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 29 Sep 2024 23:11:00 +0000 (01:11 +0200)
commit0e9f73f109025f0d5d16b104b6684e6c03aa0c83
treee4635424c5f195a8d6db7baa8bf421b51f415edc
parent9e3da79544de209c006b6b4c1514be52a48a2c1d
ASoC: tas5805m: Improve a size determination in tas5805m_i2c_probe()

Replace the specification of a data structure by a pointer dereference
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer according to the Linux coding style convention.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Link: https://patch.msgid.link/6a6c87d3-9e4f-4980-ae06-b0d5e16dd0c0@web.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas5805m.c