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 <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>
This commit is contained in:
Bartosz Golaszewski 2026-03-27 11:49:07 +01:00 committed by Lee Jones
parent 254f49634e
commit 73ae5f8c23
2 changed files with 2 additions and 1 deletions

View 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;

View File

@ -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