Commit 55dac437 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Mika Westerberg
Browse files

pinctrl: intel: mark intel_pin_to_gpio __maybe_unused



The intel_pin_to_gpio() function is only called by the
PM support functions and causes a warning when those are disabled:

drivers/pinctrl/intel/pinctrl-intel.c:841:12: error: unused function 'intel_pin_to_gpio' [-Werror,-Wunused-function]

Mark it __maybe_unused to suppress the warning.

Suggested-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-by: default avatarChris Chiu <chiu@endlessm.com>
Acked-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent 6cb0880f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -838,7 +838,7 @@ static int intel_gpio_to_pin(struct intel_pinctrl *pctrl, unsigned int offset,
 *
 * Translate the pin number of pinctrl to GPIO offset
 */
static int intel_pin_to_gpio(struct intel_pinctrl *pctrl, int pin)
static __maybe_unused int intel_pin_to_gpio(struct intel_pinctrl *pctrl, int pin)
{
	const struct intel_community *community;
	const struct intel_padgroup *padgrp;