Re: [alsa-devel] [PATCH] ASoC: Add MediaTek MT6660 Speaker Amp Driver
On Mon, Dec 23, 2019 at 02:10:12AM +0000, jeff_chang(張世佳) wrote:
--> When I check other driver at sound/soc/codecs/ folder, I just follow what others do. It seems in .h --> /* SPDX-Liencese-Identifier: GPL-2.0 */ In .c --> // SPDK-Liencese-Identifier: GPL-2.0
Is it correct?
Yes, headers use C style comments and source files use C++ style.
Dear Mark:
I need to confirm it again.
This is adau1997 driver on upstream branch
@ sound/soc/codecs/adau1997.c
// SPDX-License-Identifier: GPL-2.0-only /* * ADAU1977/ADAU1978/ADAU1979 driver * * Copyright 2014 Analog Devices Inc. * Author: Lars-Peter Clausen lars@metafoo.de */
@sound/soc/codecs/adau1997.h
/* SPDX-License-Identifier: GPL-2.0-only */ /* * ADAU1977/ADAU1978/ADAU1979 driver * * Copyright 2014 Analog Devices Inc. * Author: Lars-Peter Clausen lars@metafoo.de */
It seems not whole comment use c++. Only first line at source file, Right?
Thanks a lot.
Thanks & BRs Jeff Chang Tel 886-3-5526789 Ext 2357 14F, No. 8, Taiyuen 1st st., Zhubei City, Hsinchu County, Taiwan 30288
-----Original Message----- From: Mark Brown [mailto:broonie@kernel.org] Sent: Wednesday, December 25, 2019 7:52 AM To: jeff_chang(張世佳) jeff_chang@richtek.com Cc: Jeff Chang richtek.jeff.chang@gmail.com; lgirdwood@gmail.com; perex@perex.cz; tiwai@suse.com; matthias.bgg@gmail.com; alsa-devel@alsa-project.org; linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org Subject: Re: [PATCH] ASoC: Add MediaTek MT6660 Speaker Amp Driver
On Mon, Dec 23, 2019 at 02:10:12AM +0000, jeff_chang(張世佳) wrote:
--> When I check other driver at sound/soc/codecs/ folder, I just follow what others do. It seems in .h --> /* SPDX-Liencese-Identifier: GPL-2.0 */ In .c --> // SPDK-Liencese-Identifier: GPL-2.0
Is it correct?
Yes, headers use C style comments and source files use C++ style. ************* Email Confidentiality Notice ********************
The information contained in this e-mail message (including any attachments) may be confidential, proprietary, privileged, or otherwise exempt from disclosure under applicable laws. It is intended to be conveyed only to the designated recipient(s). Any use, dissemination, distribution, printing, retaining or copying of this e-mail (including its attachments) by unintended recipient(s) is strictly prohibited and may be unlawful. If you are not an intended recipient of this e-mail, or believe that you have received this e-mail in error, please notify the sender immediately (by replying to this e-mail), delete any and all copies of this e-mail (including any attachments) from your system, and do not disclose the content of this e-mail to any other person. Thank you!
On Wed, Dec 25, 2019 at 01:45:43AM +0000, jeff_chang(張世佳) wrote:
This is adau1997 driver on upstream branch
@ sound/soc/codecs/adau1997.c
// SPDX-License-Identifier: GPL-2.0-only /*
- ADAU1977/ADAU1978/ADAU1979 driver
This is the result of an automatic conversion which wasn't reviewed, it's not ideal.
It seems not whole comment use c++. Only first line at source file, Right?
Please do it like this:
// SPDX-License-Identifier: GPL-2.0-only // // ADAU1977/ADAU1978/ADAU1979 driver
participants (2)
-
jeff_chang(張世佳)
-
Mark Brown