regulator: mt6380: Fix unused array warning
authorJean Delvare <jdelvare@suse.de>
Wed, 27 Jul 2022 11:26:37 +0000 (13:26 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 27 Jul 2022 12:14:46 +0000 (13:14 +0100)
commit9cc0590ae351a354c51375a1ee22edc2e4931fd0
treec42ca999d09e41d9fef273db64e455506ea336a6
parent4c7da3741804fc5631d94f4df24382ce6e88f02c
regulator: mt6380: Fix unused array warning

With the following configuration options:
CONFIG_OF is not set
CONFIG_REGULATOR_MT6380=y
we get the following build warning:

  CC      drivers/regulator/mt6380-regulator.o
drivers/regulator/mt6380-regulator.c:322:34: warning: ‘mt6380_of_match’ defined but not used [-Wunused-const-variable=]

Fix this by annotating that array with __maybe_unused, as done in
various regulator drivers.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/all/202207240252.ZY5hSCNB-lkp@intel.com/
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Chenglin Xu <chenglin.xu@mediatek.com>
Link: https://lore.kernel.org/r/20220727132637.76d6073f@endymion.delvare
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/mt6380-regulator.c