Thread (74 messages) 74 messages, 7 authors, 2020-09-11
STALE2129d

[PATCH 12/23] gpio: mockup: define a constant for chip label size

From: Bartosz Golaszewski <hidden>
Date: 2020-09-04 15:49:27
Also in: linux-acpi, linux-doc, lkml
Subsystem: gpio mockup driver, gpio subsystem, the rest · Maintainers: Bamvor Jian Zhang, Linus Walleij, Bartosz Golaszewski, Linus Torvalds

From: Bartosz Golaszewski <redacted>

We'll be using this value in many places in this driver soon so define
a constant to avoid using magic values.

Signed-off-by: Bartosz Golaszewski <redacted>
---
 drivers/gpio/gpio-mockup.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c
index 801fba6496a4..e8a19a28ed13 100644
--- a/drivers/gpio/gpio-mockup.c
+++ b/drivers/gpio/gpio-mockup.c
@@ -32,6 +32,7 @@
 #define GPIO_MOCKUP_MAX_RANGES	(10 * 2)
 /* Maximum of three properties + the sentinel. */
 #define GPIO_MOCKUP_MAX_PROP	4
+#define GPIO_MOCKUP_LABEL_SIZE	32
 
 /*
  * struct gpio_pin_status - structure describing a GPIO status
-- 
2.26.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help