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

2024-03-06 Thread Christophe Leroy
Le 07/03/2024 à 06:32, Michael Ellerman a écrit : > Christophe Leroy writes: >> Le 06/03/2024 à 13:58, Michael Ellerman a écrit : >>> If both CONFIG_SENSORS_AMS_PMU and CONFIG_SENSORS_AMS_I2C are unset, >>> there is an unused variable warning in the ams driver: >>> >>>

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

2024-03-06 Thread Michael Ellerman
Christophe Leroy writes: > Le 06/03/2024 à 13:58, Michael Ellerman a écrit : >> 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': >>

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

2024-03-06 Thread Christophe Leroy
Le 06/03/2024 à 13:58, Michael Ellerman a écrit : > 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:

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

2024-03-06 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