projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da32b0e
)
mfd: vexpress-sysreg: Use more common syntax for compound literals
author
Bartosz Golaszewski
<bartosz.golaszewski@linaro.org>
Wed, 10 Sep 2025 07:25:45 +0000
(09:25 +0200)
committer
Lee Jones
<lee@kernel.org>
Wed, 1 Oct 2025 09:28:59 +0000
(10:28 +0100)
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>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Link:
https://lore.kernel.org/r/20250910-make-compound-literals-normal-again-v1-1-076ee7738a0b@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/vexpress-sysreg.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/vexpress-sysreg.c
b/drivers/mfd/vexpress-sysreg.c
index
9399eb8
..
f49cee9
100644
(file)
--- 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,