From: Bartosz Golaszewski Date: Fri, 27 Mar 2026 10:49:07 +0000 (+0100) Subject: mfd: timberdale: Move GPIO_NR_PINS into the driver X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=73ae5f8c231e79c25dc85cba00f420776ab78bb3;p=thirdparty%2Fkernel%2Flinux.git mfd: timberdale: Move GPIO_NR_PINS into the driver This symbol is only used inside the Timberdale MFD driver. Move into the .c file as there's no need for it to be exposed in a header. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko Link: https://patch.msgid.link/20260327-gpio-timberdale-swnode-v3-1-9a1bc1b2b124@oss.qualcomm.com Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/timberdale.c b/drivers/mfd/timberdale.c index a4d9c070d481a..d79419215cc29 100644 --- a/drivers/mfd/timberdale.c +++ b/drivers/mfd/timberdale.c @@ -37,6 +37,8 @@ #define DRIVER_NAME "timberdale" +#define GPIO_NR_PINS 16 + struct timberdale_device { resource_size_t ctl_mapbase; unsigned char __iomem *ctl_membase; diff --git a/drivers/mfd/timberdale.h b/drivers/mfd/timberdale.h index b01d2388e1afe..db7b434f766d0 100644 --- a/drivers/mfd/timberdale.h +++ b/drivers/mfd/timberdale.h @@ -113,7 +113,6 @@ #define GPIO_PIN_ASCB 8 #define GPIO_PIN_INIC_RST 14 #define GPIO_PIN_BT_RST 15 -#define GPIO_NR_PINS 16 /* DMA Channels */ #define DMA_UART_RX 0