On 11/03/2023 13:22, Jonathan Cameron wrote: > On Sat, 11 Mar 2023 12:14:55 +0100 > Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx> wrote: > >> The driver can be compile tested with !CONFIG_OF making certain data >> unused (of_device_id is not used for device matching): > > It should be used for device matching I think, so I'd rather see > it assigned for that purpose than hiding the issue. That would require testing and changes. The device matching is via SPI table which has device data. Probably adding OF matching would require bigger changes to for handling the match data. This was intentional design in this driver, so we are not hiding here anything. > > >> >> drivers/iio/dac/ad5755.c:865:34: error: ‘ad5755_of_match’ defined but not used [-Werror=unused-const-variable=] > Best regards, Krzysztof