[PATCH 2/2] ASoC: wm8961: add support for devicetree
Krzysztof Kozlowski
krzk at kernel.org
Sun Oct 2 10:35:27 CEST 2022
On 02/10/2022 07:04, Doug Brown wrote:
> On 10/1/2022 3:23 PM, kernel test robot wrote:
>
>>>> sound/soc/codecs/wm8961.c:974:34: warning: 'wm8961_of_match' defined but not used [-Wunused-const-variable=]
>> 974 | static const struct of_device_id wm8961_of_match[] = {
>> | ^~~~~~~~~~~~~~~
>
> Oops, nice catch by the kernel test robot. I will submit a V2 patch that
Now I see the report about issue I wrote to you. It's not particular
nice catch of robot... it's visible from the code and easily testable by
yourself. Even without compile test... The code was just not tested for
warnings.
> does this part exactly how the wm8960 driver does it, including
> .of_match_table in wm8961_i2c_driver. Waiting to see if I get any other
> feedback on V1 first.
maybe_unused instead of ifdefs.
Best regards,
Krzysztof
More information about the Alsa-devel
mailing list