Re: [PATCH] macintosh/ams: Fix unused variable warning

2024-05-08 Thread Michael Ellerman
On Wed, 08 May 2024 00:01:50 +1000, Michael Ellerman wrote: > If both CONFIG_SENSORS_AMS_PMU and CONFIG_SENSORS_AMS_I2C are unset, > there is an unused variable warning in the ams driver: > > drivers/macintosh/ams/ams-core.c: In function 'ams_init': > drivers/macintosh/ams/ams-core.c:181:29: w

[PATCH] macintosh/ams: Fix unused variable warning

2024-05-07 Thread Michael Ellerman
If both CONFIG_SENSORS_AMS_PMU and CONFIG_SENSORS_AMS_I2C are unset, there is an unused variable warning in the ams driver: drivers/macintosh/ams/ams-core.c: In function 'ams_init': drivers/macintosh/ams/ams-core.c:181:29: warning: unused variable 'np' 181 | struct device_node *np;