Re: drivers/mux/adg792a.c:134:34: warning: 'adg792a_of_match' defined but not used

From: Andy Shevchenko
Date: Sat Jan 06 2024 - 10:17:14 EST


On Fri, Dec 29, 2023 at 02:46:30AM +0800, kernel test robot wrote:
> Hi Andy,

...

> | Reported-by: kernel test robot <lkp@xxxxxxxxx>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202312290237.ChqMrE6k-lkp@xxxxxxxxx/
>
> All warnings (new ones prefixed by >>):
>
> >> drivers/mux/adg792a.c:134:34: warning: 'adg792a_of_match' defined but not used [-Wunused-const-variable=]
> 134 | static const struct of_device_id adg792a_of_match[] = {
> | ^~~~~~~~~~~~~~~~

of_match_ptr() should be dropped.

--
With Best Regards,
Andy Shevchenko