projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ac9e59
)
staging: greybus: gpio: Replace macro irq_data_to_gpio_chip with function
author
Brent Pappas
<bpappas@pappasbrent.com>
Tue, 17 Jan 2023 15:28:57 +0000
(10:28 -0500)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 17 Jan 2023 18:18:54 +0000
(19:18 +0100)
Replace the macro irq_data_to_gpio_chip with a static inline function to comply
with Linux coding style standards.
Signed-off-by: Brent Pappas <bpappas@pappasbrent.com>
Link:
https://lore.kernel.org/r/20230117152857.22141-1-bpappas@pappasbrent.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/gpio.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/gpio.c
b/drivers/staging/greybus/gpio.c
index 8a7cf1d0e968886b72dc2af3662ee0bd17ec23d6..d729b922a750676ea326bbe45d6fe2abab5f9356 100644
(file)
--- a/
drivers/staging/greybus/gpio.c
+++ b/
drivers/staging/greybus/gpio.c
@@
-43,7
+43,11
@@
struct gb_gpio_controller {
};
#define gpio_chip_to_gb_gpio_controller(chip) \
container_of(chip, struct gb_gpio_controller, chip)
-#define irq_data_to_gpio_chip(d) (d->domain->host_data)
+
+static struct gpio_chip *irq_data_to_gpio_chip(struct irq_data *d)
+{
+ return d->domain->host_data;
+}
static int gb_gpio_line_count_operation(struct gb_gpio_controller *ggc)
{