mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-09 15:29:16 +00:00
hwmon: (ina2xx) Fix build warning
The following build warning is seen if CONFIG_OF is disabled. drivers/hwmon/ina2xx.c:510:34: warning: ‘ina2xx_of_match’ defined but not used Mark ina2xx_of_match as __maybe_unused to fix the problem. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
8c71c7b943
commit
df6b8c70c2
@ -507,7 +507,7 @@ static const struct i2c_device_id ina2xx_id[] = {
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ina2xx_id);
|
||||
|
||||
static const struct of_device_id ina2xx_of_match[] = {
|
||||
static const struct of_device_id __maybe_unused ina2xx_of_match[] = {
|
||||
{
|
||||
.compatible = "ti,ina219",
|
||||
.data = (void *)ina219
|
||||
|
Loading…
x
Reference in New Issue
Block a user