summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-mlxbf.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2025-09-10 09:25:47 +0200
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2025-09-12 09:19:56 +0200
commit7eee64e8be51f9ff0393b5bd0752a6e8f9252bf9 (patch)
tree45b8d4b208deee367448233aa71d4088231204ca /drivers/gpio/gpio-mlxbf.c
parent4c91b0ee35db07ae017dce067c64364c7e95faae (diff)
gpio: 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> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Link: https://lore.kernel.org/r/20250910-make-compound-literals-normal-again-v1-3-076ee7738a0b@linaro.org Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-mlxbf.c')
-rw-r--r--drivers/gpio/gpio-mlxbf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-mlxbf.c b/drivers/gpio/gpio-mlxbf.c
index 843f40496be7..a18fedbc463e 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,