* [PATCH 0/3] gpio/pinctrl/mfd: use more common syntax for compound literals
@ 2025-09-10 7:25 Bartosz Golaszewski
2025-09-10 7:25 ` [PATCH 1/3] mfd: vexpress-sysreg: " Bartosz Golaszewski
` (4 more replies)
0 siblings, 5 replies; 15+ messages in thread
From: Bartosz Golaszewski @ 2025-09-10 7:25 UTC (permalink / raw)
To: Lee Jones, Andy Shevchenko, Liviu Dudau, Sudeep Holla,
Lorenzo Pieralisi, Avi Fishman, Tomer Maimon, Tali Perry,
Patrick Venture, Nancy Yuen, Benjamin Fair, Linus Walleij,
Jonathan Neuschäfer, Clément Le Goffic, Maxime Coquelin,
Alexandre Torgue, Bartosz Golaszewski, James Cowgill,
Matt Redfearn, Neil Jones, Nikolaos Pasaloukos, Hoan Tran,
Yang Shen, Imre Kaloz, Yinbo Zhu, Shawn Guo, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, Manivannan Sadhasivam,
Nobuhiro Iwamatsu, Ray Jui, Scott Branden,
Broadcom internal kernel review list
Cc: linux-arm-kernel, linux-kernel, openbmc, linux-gpio, linux-stm32,
imx, linux-unisoc, Bartosz Golaszewski
As discussed[1] with Andy: it's probably better to use a more common
syntax for compound literals so fix the commits that converted GPIO
chips to using the new generic GPIO chip API and make them explicitly
spell out the type they're initializing.
Each commit in this series can go directly into its respective tree:
MFD, pinctrl and GPIO.
[1] https://lore.kernel.org/all/20250909-gpio-mmio-gpio-conv-part4-v1-13-9f723dc3524a@linaro.org/
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
Bartosz Golaszewski (3):
mfd: vexpress-sysreg: use more common syntax for compound literals
pinctrl: use more common syntax for compound literals
gpio: use more common syntax for compound literals
drivers/gpio/gpio-amdpt.c | 2 +-
drivers/gpio/gpio-blzp1600.c | 2 +-
drivers/gpio/gpio-dwapb.c | 2 +-
drivers/gpio/gpio-ep93xx.c | 2 +-
drivers/gpio/gpio-ftgpio010.c | 2 +-
drivers/gpio/gpio-ge.c | 2 +-
drivers/gpio/gpio-grgpio.c | 2 +-
drivers/gpio/gpio-hisi.c | 2 +-
drivers/gpio/gpio-idt3243x.c | 2 +-
drivers/gpio/gpio-ixp4xx.c | 2 +-
drivers/gpio/gpio-loongson-64bit.c | 2 +-
drivers/gpio/gpio-mlxbf.c | 2 +-
drivers/gpio/gpio-mlxbf2.c | 2 +-
drivers/gpio/gpio-mlxbf3.c | 2 +-
drivers/gpio/gpio-mpc8xxx.c | 2 +-
drivers/gpio/gpio-mxs.c | 2 +-
drivers/gpio/gpio-rda.c | 2 +-
drivers/gpio/gpio-realtek-otto.c | 2 +-
drivers/gpio/gpio-tb10x.c | 2 +-
drivers/gpio/gpio-ts4800.c | 2 +-
drivers/gpio/gpio-vf610.c | 2 +-
drivers/gpio/gpio-visconti.c | 2 +-
drivers/gpio/gpio-xgene-sb.c | 2 +-
drivers/gpio/gpio-xgs-iproc.c | 2 +-
drivers/mfd/vexpress-sysreg.c | 2 +-
drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c | 2 +-
drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c | 2 +-
drivers/pinctrl/nuvoton/pinctrl-wpcm450.c | 2 +-
drivers/pinctrl/pinctrl-equilibrium.c | 2 +-
drivers/pinctrl/stm32/pinctrl-stm32-hdp.c | 2 +-
30 files changed, 30 insertions(+), 30 deletions(-)
---
base-commit: 65dd046ef55861190ecde44c6d9fcde54b9fb77d
change-id: 20250909-make-compound-literals-normal-again-13073cc74b94
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH 1/3] mfd: vexpress-sysreg: use more common syntax for compound literals
2025-09-10 7:25 [PATCH 0/3] gpio/pinctrl/mfd: use more common syntax for compound literals Bartosz Golaszewski
@ 2025-09-10 7:25 ` Bartosz Golaszewski
2025-09-10 10:03 ` Sudeep Holla
2025-09-16 14:17 ` (subset) " Lee Jones
2025-09-10 7:25 ` [PATCH 2/3] pinctrl: " Bartosz Golaszewski
` (3 subsequent siblings)
4 siblings, 2 replies; 15+ messages in thread
From: Bartosz Golaszewski @ 2025-09-10 7:25 UTC (permalink / raw)
To: Lee Jones, Andy Shevchenko, Liviu Dudau, Sudeep Holla,
Lorenzo Pieralisi, Avi Fishman, Tomer Maimon, Tali Perry,
Patrick Venture, Nancy Yuen, Benjamin Fair, Linus Walleij,
Jonathan Neuschäfer, Clément Le Goffic, Maxime Coquelin,
Alexandre Torgue, Bartosz Golaszewski, James Cowgill,
Matt Redfearn, Neil Jones, Nikolaos Pasaloukos, Hoan Tran,
Yang Shen, Imre Kaloz, Yinbo Zhu, Shawn Guo, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, Manivannan Sadhasivam,
Nobuhiro Iwamatsu, Ray Jui, Scott Branden,
Broadcom internal kernel review list
Cc: linux-arm-kernel, linux-kernel, openbmc, linux-gpio, linux-stm32,
imx, linux-unisoc, Bartosz Golaszewski
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
The (typeof(foo)) construct is unusual in the kernel, use a more typical
syntax by explicitly spelling out the type.
Link: https://lore.kernel.org/all/20250909-gpio-mmio-gpio-conv-part4-v1-13-9f723dc3524a@linaro.org/
Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
drivers/mfd/vexpress-sysreg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mfd/vexpress-sysreg.c b/drivers/mfd/vexpress-sysreg.c
index 9399eb850ca29b0a9d9be2173bee4bcf6888d10f..f49cee91f71cc2e6132cd3118dafd42a48821e0d 100644
--- a/drivers/mfd/vexpress-sysreg.c
+++ b/drivers/mfd/vexpress-sysreg.c
@@ -120,7 +120,7 @@ static int vexpress_sysreg_probe(struct platform_device *pdev)
if (!mmc_gpio_chip)
return -ENOMEM;
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = &pdev->dev,
.sz = 4,
.dat = base + SYS_MCI,
--
2.48.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 2/3] pinctrl: use more common syntax for compound literals
2025-09-10 7:25 [PATCH 0/3] gpio/pinctrl/mfd: use more common syntax for compound literals Bartosz Golaszewski
2025-09-10 7:25 ` [PATCH 1/3] mfd: vexpress-sysreg: " Bartosz Golaszewski
@ 2025-09-10 7:25 ` Bartosz Golaszewski
2025-09-23 22:41 ` Linus Walleij
2025-09-25 7:48 ` Geert Uytterhoeven
2025-09-10 7:25 ` [PATCH 3/3] gpio: " Bartosz Golaszewski
` (2 subsequent siblings)
4 siblings, 2 replies; 15+ messages in thread
From: Bartosz Golaszewski @ 2025-09-10 7:25 UTC (permalink / raw)
To: Lee Jones, Andy Shevchenko, Liviu Dudau, Sudeep Holla,
Lorenzo Pieralisi, Avi Fishman, Tomer Maimon, Tali Perry,
Patrick Venture, Nancy Yuen, Benjamin Fair, Linus Walleij,
Jonathan Neuschäfer, Clément Le Goffic, Maxime Coquelin,
Alexandre Torgue, Bartosz Golaszewski, James Cowgill,
Matt Redfearn, Neil Jones, Nikolaos Pasaloukos, Hoan Tran,
Yang Shen, Imre Kaloz, Yinbo Zhu, Shawn Guo, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, Manivannan Sadhasivam,
Nobuhiro Iwamatsu, Ray Jui, Scott Branden,
Broadcom internal kernel review list
Cc: linux-arm-kernel, linux-kernel, openbmc, linux-gpio, linux-stm32,
imx, linux-unisoc, Bartosz Golaszewski
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
The (typeof(foo)) construct is unusual in the kernel, use a more typical
syntax by explicitly spelling out the type.
Link: https://lore.kernel.org/all/20250909-gpio-mmio-gpio-conv-part4-v1-13-9f723dc3524a@linaro.org/
Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c | 2 +-
drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c | 2 +-
drivers/pinctrl/nuvoton/pinctrl-wpcm450.c | 2 +-
drivers/pinctrl/pinctrl-equilibrium.c | 2 +-
drivers/pinctrl/stm32/pinctrl-stm32-hdp.c | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c b/drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c
index 7f45c2897c3f270430ef7ac34ef064b2e2c58abc..4e8b5e6d1e4d48acba85e8c14e79dfbff6e6f6d7 100644
--- a/drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c
+++ b/drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c
@@ -1836,7 +1836,7 @@ static int npcm7xx_gpio_of(struct npcm7xx_pinctrl *pctrl)
if (!pctrl->gpio_bank[id].base)
return -EINVAL;
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = dev,
.sz = 4,
.dat = pctrl->gpio_bank[id].base + NPCM7XX_GP_N_DIN,
diff --git a/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c b/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c
index 920dd207792596055d6f6da9403a9b7516531277..fd4270a8fb734e1452b30dad390a80a50072fb61 100644
--- a/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c
+++ b/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c
@@ -2329,7 +2329,7 @@ static int npcm8xx_gpio_fw(struct npcm8xx_pinctrl *pctrl)
if (!pctrl->gpio_bank[id].base)
return dev_err_probe(dev, -ENXIO, "fwnode_iomap id %d failed\n", id);
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = dev,
.sz = 4,
.dat = pctrl->gpio_bank[id].base + NPCM8XX_GP_N_DIN,
diff --git a/drivers/pinctrl/nuvoton/pinctrl-wpcm450.c b/drivers/pinctrl/nuvoton/pinctrl-wpcm450.c
index 4dd8a3daa83e44b0e2780fedb03ab11fa46a4b7d..ef569525e9c6b00add773258f81b57db38411738 100644
--- a/drivers/pinctrl/nuvoton/pinctrl-wpcm450.c
+++ b/drivers/pinctrl/nuvoton/pinctrl-wpcm450.c
@@ -1064,7 +1064,7 @@ static int wpcm450_gpio_register(struct platform_device *pdev,
flags = BGPIOF_NO_OUTPUT;
}
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = dev,
.sz = 4,
.dat = dat,
diff --git a/drivers/pinctrl/pinctrl-equilibrium.c b/drivers/pinctrl/pinctrl-equilibrium.c
index 7e655b0444b359906a6b62e38873d740e1ce26ea..2d04829b29c9976fdebbaa56e6c1407eafa121a9 100644
--- a/drivers/pinctrl/pinctrl-equilibrium.c
+++ b/drivers/pinctrl/pinctrl-equilibrium.c
@@ -241,7 +241,7 @@ static int gpiolib_reg(struct eqbr_pinctrl_drv_data *drvdata)
}
raw_spin_lock_init(&gctrl->lock);
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = dev,
.sz = gctrl->bank->nr_pins / 8,
.dat = gctrl->membase + GPIO_IN,
diff --git a/drivers/pinctrl/stm32/pinctrl-stm32-hdp.c b/drivers/pinctrl/stm32/pinctrl-stm32-hdp.c
index a8a4c2eee837ad90581d35822d49ab8e4708a8e8..22d9104499af674c489a5d265c4d7b8ef0edb44e 100644
--- a/drivers/pinctrl/stm32/pinctrl-stm32-hdp.c
+++ b/drivers/pinctrl/stm32/pinctrl-stm32-hdp.c
@@ -642,7 +642,7 @@ static int stm32_hdp_probe(struct platform_device *pdev)
hdp->gpio_chip.gc.can_sleep = true;
hdp->gpio_chip.gc.names = stm32_hdp_pins_group;
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = dev,
.sz = 4,
.dat = hdp->base + HDP_GPOVAL,
--
2.48.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 3/3] gpio: use more common syntax for compound literals
2025-09-10 7:25 [PATCH 0/3] gpio/pinctrl/mfd: use more common syntax for compound literals Bartosz Golaszewski
2025-09-10 7:25 ` [PATCH 1/3] mfd: vexpress-sysreg: " Bartosz Golaszewski
2025-09-10 7:25 ` [PATCH 2/3] pinctrl: " Bartosz Golaszewski
@ 2025-09-10 7:25 ` Bartosz Golaszewski
2025-09-11 7:50 ` [PATCH 0/3] gpio/pinctrl/mfd: " Andy Shevchenko
2025-09-12 7:26 ` (subset) " Bartosz Golaszewski
4 siblings, 0 replies; 15+ messages in thread
From: Bartosz Golaszewski @ 2025-09-10 7:25 UTC (permalink / raw)
To: Lee Jones, Andy Shevchenko, Liviu Dudau, Sudeep Holla,
Lorenzo Pieralisi, Avi Fishman, Tomer Maimon, Tali Perry,
Patrick Venture, Nancy Yuen, Benjamin Fair, Linus Walleij,
Jonathan Neuschäfer, Clément Le Goffic, Maxime Coquelin,
Alexandre Torgue, Bartosz Golaszewski, James Cowgill,
Matt Redfearn, Neil Jones, Nikolaos Pasaloukos, Hoan Tran,
Yang Shen, Imre Kaloz, Yinbo Zhu, Shawn Guo, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, Manivannan Sadhasivam,
Nobuhiro Iwamatsu, Ray Jui, Scott Branden,
Broadcom internal kernel review list
Cc: linux-arm-kernel, linux-kernel, openbmc, linux-gpio, linux-stm32,
imx, linux-unisoc, Bartosz Golaszewski
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
The (typeof(foo)) construct is unusual in the kernel, use a more typical
syntax by explicitly spelling out the type.
Link: https://lore.kernel.org/all/20250909-gpio-mmio-gpio-conv-part4-v1-13-9f723dc3524a@linaro.org/
Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
drivers/gpio/gpio-amdpt.c | 2 +-
drivers/gpio/gpio-blzp1600.c | 2 +-
drivers/gpio/gpio-dwapb.c | 2 +-
drivers/gpio/gpio-ep93xx.c | 2 +-
drivers/gpio/gpio-ftgpio010.c | 2 +-
drivers/gpio/gpio-ge.c | 2 +-
drivers/gpio/gpio-grgpio.c | 2 +-
drivers/gpio/gpio-hisi.c | 2 +-
drivers/gpio/gpio-idt3243x.c | 2 +-
drivers/gpio/gpio-ixp4xx.c | 2 +-
drivers/gpio/gpio-loongson-64bit.c | 2 +-
drivers/gpio/gpio-mlxbf.c | 2 +-
drivers/gpio/gpio-mlxbf2.c | 2 +-
drivers/gpio/gpio-mlxbf3.c | 2 +-
drivers/gpio/gpio-mpc8xxx.c | 2 +-
drivers/gpio/gpio-mxs.c | 2 +-
drivers/gpio/gpio-rda.c | 2 +-
drivers/gpio/gpio-realtek-otto.c | 2 +-
drivers/gpio/gpio-tb10x.c | 2 +-
drivers/gpio/gpio-ts4800.c | 2 +-
drivers/gpio/gpio-vf610.c | 2 +-
drivers/gpio/gpio-visconti.c | 2 +-
drivers/gpio/gpio-xgene-sb.c | 2 +-
drivers/gpio/gpio-xgs-iproc.c | 2 +-
24 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/drivers/gpio/gpio-amdpt.c b/drivers/gpio/gpio-amdpt.c
index 0a9b870705b90bdc9bdab93ce5a4a33ebdafccc6..bbaf42307bc3d7df0a19b34cdb0a5aaa96c9ad3f 100644
--- a/drivers/gpio/gpio-amdpt.c
+++ b/drivers/gpio/gpio-amdpt.c
@@ -88,7 +88,7 @@ static int pt_gpio_probe(struct platform_device *pdev)
return PTR_ERR(pt_gpio->reg_base);
}
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = dev,
.sz = 4,
.dat = pt_gpio->reg_base + PT_INPUTDATA_REG,
diff --git a/drivers/gpio/gpio-blzp1600.c b/drivers/gpio/gpio-blzp1600.c
index bfb35d59fa561c43889b186fdfb8d9184b750a53..0f8c826ba876129aab078d4c9cd37d9da015e35f 100644
--- a/drivers/gpio/gpio-blzp1600.c
+++ b/drivers/gpio/gpio-blzp1600.c
@@ -230,7 +230,7 @@ static int blzp1600_gpio_probe(struct platform_device *pdev)
if (IS_ERR(chip->base))
return PTR_ERR(chip->base);
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = &pdev->dev,
.sz = 4,
.dat = chip->base + GPIO_IDATA_REG,
diff --git a/drivers/gpio/gpio-dwapb.c b/drivers/gpio/gpio-dwapb.c
index 0fb781ca9da29545dce23ddbdf3bd5927c714b4c..b42ff46d292bd8f272395956709e8dccf49106e2 100644
--- a/drivers/gpio/gpio-dwapb.c
+++ b/drivers/gpio/gpio-dwapb.c
@@ -525,7 +525,7 @@ static int dwapb_gpio_add_port(struct dwapb_gpio *gpio,
set = gpio->regs + GPIO_SWPORTA_DR + pp->idx * GPIO_SWPORT_DR_STRIDE;
dirout = gpio->regs + GPIO_SWPORTA_DDR + pp->idx * GPIO_SWPORT_DDR_STRIDE;
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = gpio->dev,
.sz = 4,
.dat = dat,
diff --git a/drivers/gpio/gpio-ep93xx.c b/drivers/gpio/gpio-ep93xx.c
index c6c8170813331be567048980710226792b4b2a02..1f56e44ffc9a3c5edab016a3b66e9d63aabf88ab 100644
--- a/drivers/gpio/gpio-ep93xx.c
+++ b/drivers/gpio/gpio-ep93xx.c
@@ -352,7 +352,7 @@ static int ep93xx_gpio_probe(struct platform_device *pdev)
gc = &egc->chip.gc;
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = &pdev->dev,
.sz = 1,
.dat = data,
diff --git a/drivers/gpio/gpio-ftgpio010.c b/drivers/gpio/gpio-ftgpio010.c
index dfa2c9444960a304d411e8d20db9bce0f8afa1c6..11e6907c3b54012877254e567520d868585c1f2b 100644
--- a/drivers/gpio/gpio-ftgpio010.c
+++ b/drivers/gpio/gpio-ftgpio010.c
@@ -264,7 +264,7 @@ static int ftgpio_gpio_probe(struct platform_device *pdev)
*/
return PTR_ERR(g->clk);
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = dev,
.sz = 4,
.dat = g->base + GPIO_DATA_IN,
diff --git a/drivers/gpio/gpio-ge.c b/drivers/gpio/gpio-ge.c
index a02dd322e0d4cecd4564a71a550204983df33568..b5cbf27b8f44225341e23e88b985e26458d11a7b 100644
--- a/drivers/gpio/gpio-ge.c
+++ b/drivers/gpio/gpio-ge.c
@@ -67,7 +67,7 @@ static int __init gef_gpio_probe(struct platform_device *pdev)
if (IS_ERR(regs))
return PTR_ERR(regs);
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = dev,
.sz = 4,
.dat = regs + GEF_GPIO_IN,
diff --git a/drivers/gpio/gpio-grgpio.c b/drivers/gpio/gpio-grgpio.c
index 3b77fad00749cd5218268b267b5848515c6a26fc..5930f4c6f2b578ea55c8143078042d5e0aaf3cfd 100644
--- a/drivers/gpio/gpio-grgpio.c
+++ b/drivers/gpio/gpio-grgpio.c
@@ -353,7 +353,7 @@ static int grgpio_probe(struct platform_device *ofdev)
if (IS_ERR(regs))
return PTR_ERR(regs);
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = dev,
.sz = 4,
.dat = regs + GRGPIO_DATA,
diff --git a/drivers/gpio/gpio-hisi.c b/drivers/gpio/gpio-hisi.c
index 01a99ac613d94e933d30f782520776693f048d1c..d8c4ab02ceaef7941e97f4788957b1f2c268de98 100644
--- a/drivers/gpio/gpio-hisi.c
+++ b/drivers/gpio/gpio-hisi.c
@@ -292,7 +292,7 @@ static int hisi_gpio_probe(struct platform_device *pdev)
hisi_gpio->dev = dev;
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = hisi_gpio->dev,
.sz = 4,
.dat = hisi_gpio->reg_base + HISI_GPIO_EXT_PORT_WX,
diff --git a/drivers/gpio/gpio-idt3243x.c b/drivers/gpio/gpio-idt3243x.c
index 232a621ba086ef66b2d2f0d471388c77ac5caa5b..56f1f1e57b69438ccd1e7014d590de61cd5a9286 100644
--- a/drivers/gpio/gpio-idt3243x.c
+++ b/drivers/gpio/gpio-idt3243x.c
@@ -147,7 +147,7 @@ static int idt_gpio_probe(struct platform_device *pdev)
ctrl->chip.gc.parent = dev;
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = &pdev->dev,
.sz = 4,
.dat = ctrl->gpio + IDT_GPIO_DATA,
diff --git a/drivers/gpio/gpio-ixp4xx.c b/drivers/gpio/gpio-ixp4xx.c
index 0cf10d0ba16ef7f45ac114c34468bc263442ccca..8a3b6b192288c8093abfe6644dbb680e9e25e830 100644
--- a/drivers/gpio/gpio-ixp4xx.c
+++ b/drivers/gpio/gpio-ixp4xx.c
@@ -294,7 +294,7 @@ static int ixp4xx_gpio_probe(struct platform_device *pdev)
flags = 0;
#endif
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = dev,
.sz = 4,
.dat = g->base + IXP4XX_REG_GPIN,
diff --git a/drivers/gpio/gpio-loongson-64bit.c b/drivers/gpio/gpio-loongson-64bit.c
index f84f8c5372494345adc64dc21f3d0439130dc6f3..b9234e12c30208dc971160d72896d8c7c6835127 100644
--- a/drivers/gpio/gpio-loongson-64bit.c
+++ b/drivers/gpio/gpio-loongson-64bit.c
@@ -289,7 +289,7 @@ static int loongson_gpio_init(struct platform_device *pdev, struct loongson_gpio
lgpio->reg_base = reg_base;
if (lgpio->chip_data->mode == BIT_CTRL_MODE) {
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = &pdev->dev,
.sz = 8,
.dat = lgpio->reg_base + lgpio->chip_data->in_offset,
diff --git a/drivers/gpio/gpio-mlxbf.c b/drivers/gpio/gpio-mlxbf.c
index 843f40496be7b723c300b3ea2f19fc698a56abba..a18fedbc463e678d94f23f8561c6d2140015c939 100644
--- a/drivers/gpio/gpio-mlxbf.c
+++ b/drivers/gpio/gpio-mlxbf.c
@@ -66,7 +66,7 @@ static int mlxbf_gpio_probe(struct platform_device *pdev)
gc = &gs->chip.gc;
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = dev,
.sz = 8,
.dat = gs->base + MLXBF_GPIO_PIN_STATE,
diff --git a/drivers/gpio/gpio-mlxbf2.c b/drivers/gpio/gpio-mlxbf2.c
index f99f66cd189ca71c9d188dff0a0b42ef2223abb3..7e3b526a6caae0ef7697c2f812370f8bf5ea6049 100644
--- a/drivers/gpio/gpio-mlxbf2.c
+++ b/drivers/gpio/gpio-mlxbf2.c
@@ -377,7 +377,7 @@ mlxbf2_gpio_probe(struct platform_device *pdev)
gc = &gs->chip.gc;
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = dev,
.sz = 4,
.dat = gs->gpio_io + YU_GPIO_DATAIN,
diff --git a/drivers/gpio/gpio-mlxbf3.c b/drivers/gpio/gpio-mlxbf3.c
index c812011bdbe65a9ee793ae1a5bfc656b523ab8ed..4770578269bae8bdbee60873d77c93d4c4712c9b 100644
--- a/drivers/gpio/gpio-mlxbf3.c
+++ b/drivers/gpio/gpio-mlxbf3.c
@@ -209,7 +209,7 @@ static int mlxbf3_gpio_probe(struct platform_device *pdev)
return PTR_ERR(gs->gpio_clr_io);
gc = &gs->chip.gc;
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = dev,
.sz = 4,
.dat = gs->gpio_io + MLXBF_GPIO_READ_DATA_IN,
diff --git a/drivers/gpio/gpio-mpc8xxx.c b/drivers/gpio/gpio-mpc8xxx.c
index 38643fb813c562957076aab48d804f8048cee5e4..dd2cd2cc6e6f2932a62f5fe82718c53cd765ffa6 100644
--- a/drivers/gpio/gpio-mpc8xxx.c
+++ b/drivers/gpio/gpio-mpc8xxx.c
@@ -345,7 +345,7 @@ static int mpc8xxx_probe(struct platform_device *pdev)
gc = &mpc8xxx_gc->chip.gc;
gc->parent = dev;
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = dev,
.sz = 4,
.dat = mpc8xxx_gc->regs + GPIO_DAT,
diff --git a/drivers/gpio/gpio-mxs.c b/drivers/gpio/gpio-mxs.c
index af45d1b1af6e049899ea6773bed92fb8a84a0dff..5635694bf9f448f85b395a3da62033735a04fbdf 100644
--- a/drivers/gpio/gpio-mxs.c
+++ b/drivers/gpio/gpio-mxs.c
@@ -321,7 +321,7 @@ static int mxs_gpio_probe(struct platform_device *pdev)
irq_set_chained_handler_and_data(port->irq, mxs_gpio_irq_handler,
port);
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = &pdev->dev,
.sz = 4,
.dat = port->base + PINCTRL_DIN(port),
diff --git a/drivers/gpio/gpio-rda.c b/drivers/gpio/gpio-rda.c
index bcd85a2237a532b875df9470d972ac88b95a91cc..fb479d13eb01a49218ad4229e7d4f70f096f5a2e 100644
--- a/drivers/gpio/gpio-rda.c
+++ b/drivers/gpio/gpio-rda.c
@@ -237,7 +237,7 @@ static int rda_gpio_probe(struct platform_device *pdev)
spin_lock_init(&rda_gpio->lock);
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = dev,
.sz = 4,
.dat = rda_gpio->base + RDA_GPIO_VAL,
diff --git a/drivers/gpio/gpio-realtek-otto.c b/drivers/gpio/gpio-realtek-otto.c
index ab711422254e9e8ff1a4e7c4016389e6d352f268..37b4f73771e651e95b6127befe579ea76e03a102 100644
--- a/drivers/gpio/gpio-realtek-otto.c
+++ b/drivers/gpio/gpio-realtek-otto.c
@@ -401,7 +401,7 @@ static int realtek_gpio_probe(struct platform_device *pdev)
ctrl->line_imr_pos = realtek_gpio_line_imr_pos_swapped;
}
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = dev,
.sz = 4,
.dat = ctrl->base + REALTEK_GPIO_REG_DATA,
diff --git a/drivers/gpio/gpio-tb10x.c b/drivers/gpio/gpio-tb10x.c
index f20b6654b865555579bb356a336308e23b0e5af6..09a448ce3eec2f4a68da188ec88a9d0833ab65ab 100644
--- a/drivers/gpio/gpio-tb10x.c
+++ b/drivers/gpio/gpio-tb10x.c
@@ -135,7 +135,7 @@ static int tb10x_gpio_probe(struct platform_device *pdev)
* the lines, no special set or clear registers and a data direction register
* wher 1 means "output".
*/
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = dev,
.sz = 4,
.dat = tb10x_gpio->base + OFFSET_TO_REG_DATA,
diff --git a/drivers/gpio/gpio-ts4800.c b/drivers/gpio/gpio-ts4800.c
index 844347945e8e71fa0f456be0ba8de7217f6760a3..992ee231db9ff8ba47600483457e7373159f1e5d 100644
--- a/drivers/gpio/gpio-ts4800.c
+++ b/drivers/gpio/gpio-ts4800.c
@@ -39,7 +39,7 @@ static int ts4800_gpio_probe(struct platform_device *pdev)
else if (retval)
return retval;
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = dev,
.sz = 2,
.dat = base_addr + INPUT_REG_OFFSET,
diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c
index fa7e322a834cc2afbab7d4948cd41465867aa4c8..f3590db72b141223e0a957825e94222056aa77bb 100644
--- a/drivers/gpio/gpio-vf610.c
+++ b/drivers/gpio/gpio-vf610.c
@@ -305,7 +305,7 @@ static int vf610_gpio_probe(struct platform_device *pdev)
if (port->sdata->have_paddr)
flags |= BGPIOF_READ_OUTPUT_REG_SET;
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = dev,
.sz = 4,
.dat = port->gpio_base + GPIO_PDIR,
diff --git a/drivers/gpio/gpio-visconti.c b/drivers/gpio/gpio-visconti.c
index cde1581a91033e0ffa855e6cab0a36fa01f2baa1..6d5d829634ad761b6f8f63dd1565e337faf89e44 100644
--- a/drivers/gpio/gpio-visconti.c
+++ b/drivers/gpio/gpio-visconti.c
@@ -191,7 +191,7 @@ static int visconti_gpio_probe(struct platform_device *pdev)
return -ENODEV;
}
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = dev,
.sz = 4,
.dat = priv->base + GPIO_IDATA,
diff --git a/drivers/gpio/gpio-xgene-sb.c b/drivers/gpio/gpio-xgene-sb.c
index c559a89aadf7a77bd9cce7e5a7d4a2b241307812..28ee3f7e91b921e7f22cbdb9c2d23cd0e80d429c 100644
--- a/drivers/gpio/gpio-xgene-sb.c
+++ b/drivers/gpio/gpio-xgene-sb.c
@@ -265,7 +265,7 @@ static int xgene_gpio_sb_probe(struct platform_device *pdev)
return -ENODEV;
}
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = &pdev->dev,
.sz = 4,
.dat = regs + MPA_GPIO_IN_ADDR,
diff --git a/drivers/gpio/gpio-xgs-iproc.c b/drivers/gpio/gpio-xgs-iproc.c
index 9cffdedd31b1c39123b93469465f483fbb4d076a..77eb29dcc2171a8221b965fd75c4a0d9175044d0 100644
--- a/drivers/gpio/gpio-xgs-iproc.c
+++ b/drivers/gpio/gpio-xgs-iproc.c
@@ -233,7 +233,7 @@ static int iproc_gpio_probe(struct platform_device *pdev)
if (IS_ERR(chip->base))
return PTR_ERR(chip->base);
- config = (typeof(config)){
+ config = (struct gpio_generic_chip_config) {
.dev = dev,
.sz = 4,
.dat = chip->base + IPROC_GPIO_CCA_DIN,
--
2.48.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH 1/3] mfd: vexpress-sysreg: use more common syntax for compound literals
2025-09-10 7:25 ` [PATCH 1/3] mfd: vexpress-sysreg: " Bartosz Golaszewski
@ 2025-09-10 10:03 ` Sudeep Holla
2025-09-16 14:17 ` (subset) " Lee Jones
1 sibling, 0 replies; 15+ messages in thread
From: Sudeep Holla @ 2025-09-10 10:03 UTC (permalink / raw)
To: Bartosz Golaszewski
Cc: Lee Jones, Andy Shevchenko, Liviu Dudau, Lorenzo Pieralisi,
Avi Fishman, Tomer Maimon, Tali Perry, Patrick Venture,
Nancy Yuen, Benjamin Fair, Linus Walleij,
Jonathan Neuschäfer, Clément Le Goffic, Maxime Coquelin,
Alexandre Torgue, James Cowgill, Matt Redfearn, Neil Jones,
Nikolaos Pasaloukos, Hoan Tran, Yang Shen, Imre Kaloz, Yinbo Zhu,
Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
Manivannan Sadhasivam, Nobuhiro Iwamatsu, Ray Jui, Scott Branden,
Broadcom internal kernel review list, linux-arm-kernel,
linux-kernel, openbmc, linux-gpio, linux-stm32, imx, linux-unisoc,
Bartosz Golaszewski
On Wed, Sep 10, 2025 at 09:25:45AM +0200, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> The (typeof(foo)) construct is unusual in the kernel, use a more typical
> syntax by explicitly spelling out the type.
>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
--
Regards,
Sudeep
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 0/3] gpio/pinctrl/mfd: use more common syntax for compound literals
2025-09-10 7:25 [PATCH 0/3] gpio/pinctrl/mfd: use more common syntax for compound literals Bartosz Golaszewski
` (2 preceding siblings ...)
2025-09-10 7:25 ` [PATCH 3/3] gpio: " Bartosz Golaszewski
@ 2025-09-11 7:50 ` Andy Shevchenko
2025-09-12 7:26 ` (subset) " Bartosz Golaszewski
4 siblings, 0 replies; 15+ messages in thread
From: Andy Shevchenko @ 2025-09-11 7:50 UTC (permalink / raw)
To: Bartosz Golaszewski
Cc: Lee Jones, Liviu Dudau, Sudeep Holla, Lorenzo Pieralisi,
Avi Fishman, Tomer Maimon, Tali Perry, Patrick Venture,
Nancy Yuen, Benjamin Fair, Linus Walleij,
Jonathan Neuschäfer, Clément Le Goffic, Maxime Coquelin,
Alexandre Torgue, James Cowgill, Matt Redfearn, Neil Jones,
Nikolaos Pasaloukos, Hoan Tran, Yang Shen, Imre Kaloz, Yinbo Zhu,
Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
Manivannan Sadhasivam, Nobuhiro Iwamatsu, Ray Jui, Scott Branden,
Broadcom internal kernel review list, linux-arm-kernel,
linux-kernel, openbmc, linux-gpio, linux-stm32, imx, linux-unisoc,
Bartosz Golaszewski
On Wed, Sep 10, 2025 at 09:25:44AM +0200, Bartosz Golaszewski wrote:
> As discussed[1] with Andy: it's probably better to use a more common
> syntax for compound literals so fix the commits that converted GPIO
> chips to using the new generic GPIO chip API and make them explicitly
> spell out the type they're initializing.
>
> Each commit in this series can go directly into its respective tree:
> MFD, pinctrl and GPIO.
Thank you! All look good to me,
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
> [1] https://lore.kernel.org/all/20250909-gpio-mmio-gpio-conv-part4-v1-13-9f723dc3524a@linaro.org/
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: (subset) [PATCH 0/3] gpio/pinctrl/mfd: use more common syntax for compound literals
2025-09-10 7:25 [PATCH 0/3] gpio/pinctrl/mfd: use more common syntax for compound literals Bartosz Golaszewski
` (3 preceding siblings ...)
2025-09-11 7:50 ` [PATCH 0/3] gpio/pinctrl/mfd: " Andy Shevchenko
@ 2025-09-12 7:26 ` Bartosz Golaszewski
4 siblings, 0 replies; 15+ messages in thread
From: Bartosz Golaszewski @ 2025-09-12 7:26 UTC (permalink / raw)
To: Lee Jones, Andy Shevchenko, Liviu Dudau, Sudeep Holla,
Lorenzo Pieralisi, Avi Fishman, Tomer Maimon, Tali Perry,
Patrick Venture, Nancy Yuen, Benjamin Fair, Linus Walleij,
Jonathan Neuschäfer, Clément Le Goffic, Maxime Coquelin,
Alexandre Torgue, James Cowgill, Matt Redfearn, Neil Jones,
Nikolaos Pasaloukos, Hoan Tran, Yang Shen, Imre Kaloz, Yinbo Zhu,
Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
Manivannan Sadhasivam, Nobuhiro Iwamatsu, Ray Jui, Scott Branden,
Broadcom internal kernel review list, Bartosz Golaszewski
Cc: Bartosz Golaszewski, linux-arm-kernel, linux-kernel, openbmc,
linux-gpio, linux-stm32, imx, linux-unisoc
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
On Wed, 10 Sep 2025 09:25:44 +0200, Bartosz Golaszewski wrote:
> As discussed[1] with Andy: it's probably better to use a more common
> syntax for compound literals so fix the commits that converted GPIO
> chips to using the new generic GPIO chip API and make them explicitly
> spell out the type they're initializing.
>
> Each commit in this series can go directly into its respective tree:
> MFD, pinctrl and GPIO.
>
> [...]
Applied, thanks!
[3/3] gpio: use more common syntax for compound literals
https://git.kernel.org/brgl/linux/c/7eee64e8be51f9ff0393b5bd0752a6e8f9252bf9
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: (subset) [PATCH 1/3] mfd: vexpress-sysreg: use more common syntax for compound literals
2025-09-10 7:25 ` [PATCH 1/3] mfd: vexpress-sysreg: " Bartosz Golaszewski
2025-09-10 10:03 ` Sudeep Holla
@ 2025-09-16 14:17 ` Lee Jones
1 sibling, 0 replies; 15+ messages in thread
From: Lee Jones @ 2025-09-16 14:17 UTC (permalink / raw)
To: Lee Jones, Andy Shevchenko, Liviu Dudau, Sudeep Holla,
Lorenzo Pieralisi, Avi Fishman, Tomer Maimon, Tali Perry,
Patrick Venture, Nancy Yuen, Benjamin Fair, Linus Walleij,
Jonathan Neuschäfer, Clément Le Goffic, Maxime Coquelin,
Alexandre Torgue, James Cowgill, Matt Redfearn, Neil Jones,
Nikolaos Pasaloukos, Hoan Tran, Yang Shen, Imre Kaloz, Yinbo Zhu,
Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
Manivannan Sadhasivam, Nobuhiro Iwamatsu, Ray Jui, Scott Branden,
Broadcom internal kernel review list, Bartosz Golaszewski
Cc: linux-arm-kernel, linux-kernel, openbmc, linux-gpio, linux-stm32,
imx, linux-unisoc, Bartosz Golaszewski
On Wed, 10 Sep 2025 09:25:45 +0200, Bartosz Golaszewski wrote:
> The (typeof(foo)) construct is unusual in the kernel, use a more typical
> syntax by explicitly spelling out the type.
>
>
Applied, thanks!
[1/3] mfd: vexpress-sysreg: use more common syntax for compound literals
commit: f8cba973e4e51b8a166cbf81f827ff926f64d92e
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 2/3] pinctrl: use more common syntax for compound literals
2025-09-10 7:25 ` [PATCH 2/3] pinctrl: " Bartosz Golaszewski
@ 2025-09-23 22:41 ` Linus Walleij
2025-09-25 7:48 ` Geert Uytterhoeven
1 sibling, 0 replies; 15+ messages in thread
From: Linus Walleij @ 2025-09-23 22:41 UTC (permalink / raw)
To: Bartosz Golaszewski
Cc: Lee Jones, Andy Shevchenko, Liviu Dudau, Sudeep Holla,
Lorenzo Pieralisi, Avi Fishman, Tomer Maimon, Tali Perry,
Patrick Venture, Nancy Yuen, Benjamin Fair,
Jonathan Neuschäfer, Clément Le Goffic, Maxime Coquelin,
Alexandre Torgue, James Cowgill, Matt Redfearn, Neil Jones,
Nikolaos Pasaloukos, Hoan Tran, Yang Shen, Imre Kaloz, Yinbo Zhu,
Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
Manivannan Sadhasivam, Nobuhiro Iwamatsu, Ray Jui, Scott Branden,
Broadcom internal kernel review list, linux-arm-kernel,
linux-kernel, openbmc, linux-gpio, linux-stm32, imx, linux-unisoc,
Bartosz Golaszewski
On Wed, Sep 10, 2025 at 9:25 AM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> The (typeof(foo)) construct is unusual in the kernel, use a more typical
> syntax by explicitly spelling out the type.
>
> Link: https://lore.kernel.org/all/20250909-gpio-mmio-gpio-conv-part4-v1-13-9f723dc3524a@linaro.org/
> Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Patch applied.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 2/3] pinctrl: use more common syntax for compound literals
2025-09-10 7:25 ` [PATCH 2/3] pinctrl: " Bartosz Golaszewski
2025-09-23 22:41 ` Linus Walleij
@ 2025-09-25 7:48 ` Geert Uytterhoeven
2025-09-25 7:51 ` Bartosz Golaszewski
1 sibling, 1 reply; 15+ messages in thread
From: Geert Uytterhoeven @ 2025-09-25 7:48 UTC (permalink / raw)
To: Bartosz Golaszewski
Cc: Lee Jones, Andy Shevchenko, Liviu Dudau, Sudeep Holla,
Lorenzo Pieralisi, Avi Fishman, Tomer Maimon, Tali Perry,
Patrick Venture, Nancy Yuen, Benjamin Fair, Linus Walleij,
Jonathan Neuschäfer, Clément Le Goffic, Maxime Coquelin,
Alexandre Torgue, James Cowgill, Matt Redfearn, Neil Jones,
Nikolaos Pasaloukos, Hoan Tran, Yang Shen, Imre Kaloz, Yinbo Zhu,
Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
Manivannan Sadhasivam, Nobuhiro Iwamatsu, Ray Jui, Scott Branden,
Broadcom internal kernel review list, linux-arm-kernel,
linux-kernel, openbmc, linux-gpio, linux-stm32, imx, linux-unisoc,
Bartosz Golaszewski
Hi Bartosz,
On Thu, 11 Sept 2025 at 12:02, Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> The (typeof(foo)) construct is unusual in the kernel, use a more typical
> syntax by explicitly spelling out the type.
Thanks for your patch, which is now commit da3a88e9656c17a3 ("pinctrl:
use more common syntax for compound literals") in pinctrl/for-next
> Link: https://lore.kernel.org/all/20250909-gpio-mmio-gpio-conv-part4-v1-13-9f723dc3524a@linaro.org/
Looks like you (slightly) missed your target. The correct link is:
Link: https://lore.kernel.org/aMAP9hAWars0T83r@smile.fi.intel.com
> Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 2/3] pinctrl: use more common syntax for compound literals
2025-09-25 7:48 ` Geert Uytterhoeven
@ 2025-09-25 7:51 ` Bartosz Golaszewski
2025-09-25 8:02 ` Geert Uytterhoeven
2025-10-01 8:36 ` Linus Walleij
0 siblings, 2 replies; 15+ messages in thread
From: Bartosz Golaszewski @ 2025-09-25 7:51 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Lee Jones, Andy Shevchenko, Liviu Dudau, Sudeep Holla,
Lorenzo Pieralisi, Avi Fishman, Tomer Maimon, Tali Perry,
Patrick Venture, Nancy Yuen, Benjamin Fair, Linus Walleij,
Jonathan Neuschäfer, Clément Le Goffic, Maxime Coquelin,
Alexandre Torgue, James Cowgill, Matt Redfearn, Neil Jones,
Nikolaos Pasaloukos, Hoan Tran, Yang Shen, Imre Kaloz, Yinbo Zhu,
Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
Manivannan Sadhasivam, Nobuhiro Iwamatsu, Ray Jui, Scott Branden,
Broadcom internal kernel review list, linux-arm-kernel,
linux-kernel, openbmc, linux-gpio, linux-stm32, imx, linux-unisoc,
Bartosz Golaszewski
On Thu, Sep 25, 2025 at 9:48 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>
> Hi Bartosz,
>
> On Thu, 11 Sept 2025 at 12:02, Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> >
> > The (typeof(foo)) construct is unusual in the kernel, use a more typical
> > syntax by explicitly spelling out the type.
>
> Thanks for your patch, which is now commit da3a88e9656c17a3 ("pinctrl:
> use more common syntax for compound literals") in pinctrl/for-next
>
> > Link: https://lore.kernel.org/all/20250909-gpio-mmio-gpio-conv-part4-v1-13-9f723dc3524a@linaro.org/
>
> Looks like you (slightly) missed your target. The correct link is:
>
> Link: https://lore.kernel.org/aMAP9hAWars0T83r@smile.fi.intel.com
>
> > Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
> > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
Hi Geert,
This is a link to the discussion with Andy as per Linus Torvalds'
recent request to use the Link: tag to point to actually useful
information rather than just the patch's origin. Linus Walleij doesn't
use b4 so the origin link you'd normally expect to be added
automatically is not there at all. That's probably what caused the
confusion.
Bartosz
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 2/3] pinctrl: use more common syntax for compound literals
2025-09-25 7:51 ` Bartosz Golaszewski
@ 2025-09-25 8:02 ` Geert Uytterhoeven
2025-09-25 8:11 ` Bartosz Golaszewski
2025-10-01 8:36 ` Linus Walleij
1 sibling, 1 reply; 15+ messages in thread
From: Geert Uytterhoeven @ 2025-09-25 8:02 UTC (permalink / raw)
To: Bartosz Golaszewski
Cc: Lee Jones, Andy Shevchenko, Liviu Dudau, Sudeep Holla,
Lorenzo Pieralisi, Avi Fishman, Tomer Maimon, Tali Perry,
Patrick Venture, Nancy Yuen, Benjamin Fair, Linus Walleij,
Jonathan Neuschäfer, Clément Le Goffic, Maxime Coquelin,
Alexandre Torgue, James Cowgill, Matt Redfearn, Neil Jones,
Nikolaos Pasaloukos, Hoan Tran, Yang Shen, Imre Kaloz, Yinbo Zhu,
Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
Manivannan Sadhasivam, Nobuhiro Iwamatsu, Ray Jui, Scott Branden,
Broadcom internal kernel review list, linux-arm-kernel,
linux-kernel, openbmc, linux-gpio, linux-stm32, imx, linux-unisoc,
Bartosz Golaszewski
Hi Bartosz,
On Thu, 25 Sept 2025 at 09:52, Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> On Thu, Sep 25, 2025 at 9:48 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> > On Thu, 11 Sept 2025 at 12:02, Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> > > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> > >
> > > The (typeof(foo)) construct is unusual in the kernel, use a more typical
> > > syntax by explicitly spelling out the type.
> >
> > Thanks for your patch, which is now commit da3a88e9656c17a3 ("pinctrl:
> > use more common syntax for compound literals") in pinctrl/for-next
> >
> > > Link: https://lore.kernel.org/all/20250909-gpio-mmio-gpio-conv-part4-v1-13-9f723dc3524a@linaro.org/
This is the origin link to the patch (by you) that started the discussion.
> >
> > Looks like you (slightly) missed your target. The correct link is:
> >
> > Link: https://lore.kernel.org/aMAP9hAWars0T83r@smile.fi.intel.com
This is the link to the comment (by Andy) that questioned the construct.
> >
> > > Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
> > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> This is a link to the discussion with Andy as per Linus Torvalds'
> recent request to use the Link: tag to point to actually useful
> information rather than just the patch's origin. Linus Walleij doesn't
> use b4 so the origin link you'd normally expect to be added
> automatically is not there at all. That's probably what caused the
> confusion.
I know ;-)
Given the "Suggested-by: Andy", shouldn't the link point to the email
with the actual suggestion?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 2/3] pinctrl: use more common syntax for compound literals
2025-09-25 8:02 ` Geert Uytterhoeven
@ 2025-09-25 8:11 ` Bartosz Golaszewski
0 siblings, 0 replies; 15+ messages in thread
From: Bartosz Golaszewski @ 2025-09-25 8:11 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Lee Jones, Andy Shevchenko, Liviu Dudau, Sudeep Holla,
Lorenzo Pieralisi, Avi Fishman, Tomer Maimon, Tali Perry,
Patrick Venture, Nancy Yuen, Benjamin Fair, Linus Walleij,
Jonathan Neuschäfer, Clément Le Goffic, Maxime Coquelin,
Alexandre Torgue, James Cowgill, Matt Redfearn, Neil Jones,
Nikolaos Pasaloukos, Hoan Tran, Yang Shen, Imre Kaloz, Yinbo Zhu,
Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
Manivannan Sadhasivam, Nobuhiro Iwamatsu, Ray Jui, Scott Branden,
Broadcom internal kernel review list, linux-arm-kernel,
linux-kernel, openbmc, linux-gpio, linux-stm32, imx, linux-unisoc,
Bartosz Golaszewski
On Thu, Sep 25, 2025 at 10:03 AM Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
>
> Hi Bartosz,
>
> On Thu, 25 Sept 2025 at 09:52, Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> > On Thu, Sep 25, 2025 at 9:48 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> > > On Thu, 11 Sept 2025 at 12:02, Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> > > > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> > > >
> > > > The (typeof(foo)) construct is unusual in the kernel, use a more typical
> > > > syntax by explicitly spelling out the type.
> > >
> > > Thanks for your patch, which is now commit da3a88e9656c17a3 ("pinctrl:
> > > use more common syntax for compound literals") in pinctrl/for-next
> > >
> > > > Link: https://lore.kernel.org/all/20250909-gpio-mmio-gpio-conv-part4-v1-13-9f723dc3524a@linaro.org/
>
> This is the origin link to the patch (by you) that started the discussion.
>
> > >
> > > Looks like you (slightly) missed your target. The correct link is:
> > >
> > > Link: https://lore.kernel.org/aMAP9hAWars0T83r@smile.fi.intel.com
>
> This is the link to the comment (by Andy) that questioned the construct.
>
> > >
> > > > Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
> > > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> >
> > This is a link to the discussion with Andy as per Linus Torvalds'
> > recent request to use the Link: tag to point to actually useful
> > information rather than just the patch's origin. Linus Walleij doesn't
> > use b4 so the origin link you'd normally expect to be added
> > automatically is not there at all. That's probably what caused the
> > confusion.
>
> I know ;-)
>
> Given the "Suggested-by: Andy", shouldn't the link point to the email
> with the actual suggestion?
>
Ah, I didn't realize this is what you meant. I wanted to point to the
entire discussion and also this is already in Linus' tree so it's up
to him if he wants to change it.
Bartosz
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 2/3] pinctrl: use more common syntax for compound literals
2025-09-25 7:51 ` Bartosz Golaszewski
2025-09-25 8:02 ` Geert Uytterhoeven
@ 2025-10-01 8:36 ` Linus Walleij
2025-10-01 8:46 ` Bartosz Golaszewski
1 sibling, 1 reply; 15+ messages in thread
From: Linus Walleij @ 2025-10-01 8:36 UTC (permalink / raw)
To: Bartosz Golaszewski
Cc: Geert Uytterhoeven, Lee Jones, Andy Shevchenko, Liviu Dudau,
Sudeep Holla, Lorenzo Pieralisi, Avi Fishman, Tomer Maimon,
Tali Perry, Patrick Venture, Nancy Yuen, Benjamin Fair,
Jonathan Neuschäfer, Clément Le Goffic, Maxime Coquelin,
Alexandre Torgue, James Cowgill, Matt Redfearn, Neil Jones,
Nikolaos Pasaloukos, Hoan Tran, Yang Shen, Imre Kaloz, Yinbo Zhu,
Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
Manivannan Sadhasivam, Nobuhiro Iwamatsu, Ray Jui, Scott Branden,
Broadcom internal kernel review list, linux-arm-kernel,
linux-kernel, openbmc, linux-gpio, linux-stm32, imx, linux-unisoc,
Bartosz Golaszewski
On Thu, Sep 25, 2025 at 9:52 AM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> This is a link to the discussion with Andy as per Linus Torvalds'
> recent request to use the Link: tag to point to actually useful
> information rather than just the patch's origin. Linus Walleij doesn't
> use b4 so the origin link you'd normally expect to be added
> automatically is not there at all. That's probably what caused the
> confusion.
What? I use b4 for everything, I don't know what gave you
that impression....
I have however removed the automated Link: tags generated from magic
gitconfig hooks as requested by Torvalds in v6.17-rc5:
https://lwn.net/Articles/1037069/
This is also mentioned in my pin control pull request from yesterday.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 2/3] pinctrl: use more common syntax for compound literals
2025-10-01 8:36 ` Linus Walleij
@ 2025-10-01 8:46 ` Bartosz Golaszewski
0 siblings, 0 replies; 15+ messages in thread
From: Bartosz Golaszewski @ 2025-10-01 8:46 UTC (permalink / raw)
To: Linus Walleij
Cc: Geert Uytterhoeven, Lee Jones, Andy Shevchenko, Liviu Dudau,
Sudeep Holla, Lorenzo Pieralisi, Avi Fishman, Tomer Maimon,
Tali Perry, Patrick Venture, Nancy Yuen, Benjamin Fair,
Jonathan Neuschäfer, Clément Le Goffic, Maxime Coquelin,
Alexandre Torgue, James Cowgill, Matt Redfearn, Neil Jones,
Nikolaos Pasaloukos, Hoan Tran, Yang Shen, Imre Kaloz, Yinbo Zhu,
Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
Manivannan Sadhasivam, Nobuhiro Iwamatsu, Ray Jui, Scott Branden,
Broadcom internal kernel review list, linux-arm-kernel,
linux-kernel, openbmc, linux-gpio, linux-stm32, imx, linux-unisoc,
Bartosz Golaszewski
On Wed, Oct 1, 2025 at 10:36 AM Linus Walleij <linus.walleij@linaro.org> wrote:
>
> On Thu, Sep 25, 2025 at 9:52 AM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
>
> > This is a link to the discussion with Andy as per Linus Torvalds'
> > recent request to use the Link: tag to point to actually useful
> > information rather than just the patch's origin. Linus Walleij doesn't
> > use b4 so the origin link you'd normally expect to be added
> > automatically is not there at all. That's probably what caused the
> > confusion.
>
> What? I use b4 for everything, I don't know what gave you
> that impression....
>
Ah, sorry for this. I assumed the lack of Link is due to no b4. Should
have looked at git log first.
> I have however removed the automated Link: tags generated from magic
> gitconfig hooks as requested by Torvalds in v6.17-rc5:
> https://lwn.net/Articles/1037069/
>
> This is also mentioned in my pin control pull request from yesterday.
>
So it is a policy after all and not a "please"? Let me remove the hooks then...
Bart
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2025-10-01 8:46 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-10 7:25 [PATCH 0/3] gpio/pinctrl/mfd: use more common syntax for compound literals Bartosz Golaszewski
2025-09-10 7:25 ` [PATCH 1/3] mfd: vexpress-sysreg: " Bartosz Golaszewski
2025-09-10 10:03 ` Sudeep Holla
2025-09-16 14:17 ` (subset) " Lee Jones
2025-09-10 7:25 ` [PATCH 2/3] pinctrl: " Bartosz Golaszewski
2025-09-23 22:41 ` Linus Walleij
2025-09-25 7:48 ` Geert Uytterhoeven
2025-09-25 7:51 ` Bartosz Golaszewski
2025-09-25 8:02 ` Geert Uytterhoeven
2025-09-25 8:11 ` Bartosz Golaszewski
2025-10-01 8:36 ` Linus Walleij
2025-10-01 8:46 ` Bartosz Golaszewski
2025-09-10 7:25 ` [PATCH 3/3] gpio: " Bartosz Golaszewski
2025-09-11 7:50 ` [PATCH 0/3] gpio/pinctrl/mfd: " Andy Shevchenko
2025-09-12 7:26 ` (subset) " Bartosz Golaszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox