Skip to content

Commit 800d2c6

Browse files
Bartosz Golaszewskilag-linaro
authored andcommitted
mfd: vexpress-sysreg: Use more common syntax for compound literals
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>
1 parent da32b0e commit 800d2c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mfd/vexpress-sysreg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static int vexpress_sysreg_probe(struct platform_device *pdev)
120120
if (!mmc_gpio_chip)
121121
return -ENOMEM;
122122

123-
config = (typeof(config)){
123+
config = (struct gpio_generic_chip_config) {
124124
.dev = &pdev->dev,
125125
.sz = 4,
126126
.dat = base + SYS_MCI,

0 commit comments

Comments
 (0)