Thread (20 messages) 20 messages, 5 authors, 2024-09-06

Re: [PATCH 2/3] drivers: gpio: siul2-s32g2: add NXP S32G2/S32G3 SoCs support

From: Andrew Lunn <andrew@lunn.ch>
Date: 2024-08-26 14:06:21
Also in: linux-devicetree, linux-gpio, lkml

+static inline int siul2_get_gpio_pinspec(struct platform_device *pdev,
+					 struct of_phandle_args *pinspec,
+					 unsigned int range_index)
+{
+	struct device_node *np = pdev->dev.of_node;
+
+	return of_parse_phandle_with_fixed_args(np, "gpio-ranges", 3,
+						range_index, pinspec);
+}
In general, inline should be avoided. The compiler is better at
deciding than humans.

	Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help