]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mfd: timberdale: Move GPIO_NR_PINS into the driver
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Fri, 27 Mar 2026 10:49:07 +0000 (11:49 +0100)
committerLee Jones <lee@kernel.org>
Thu, 7 May 2026 15:25:06 +0000 (16:25 +0100)
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 <bartosz.golaszewski@oss.qualcomm.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20260327-gpio-timberdale-swnode-v3-1-9a1bc1b2b124@oss.qualcomm.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/timberdale.c
drivers/mfd/timberdale.h

index a4d9c070d481a182890a58e4b8c850c4c29f7f17..d79419215cc292b705031a6432e877b94f9a1805 100644 (file)
@@ -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;
index b01d2388e1afe59e14f77e10678bdbe599d2b90f..db7b434f766d03deb7c45ec1c8c5ded003aad087 100644 (file)
 #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