Skip to content

Commit cc6eaa0

Browse files
m-braunschweigkartben
authored andcommitted
drivers: gpio: davinci: fix config layout
Zephyr GPIO drivers require the pin mask `struct gpio_driver_data` to be the first element of the driver config. Reordering fixes failures in ASSERT statements of the GPIO driver due to the base address being interpreted as supported pin mask. Signed-off-by: Mika Braunschweig <[email protected]>
1 parent 16614b4 commit cc6eaa0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpio/gpio_davinci.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
22
* Copyright (C) 2023 BeagleBoard.org Foundation
33
* Copyright (C) 2023 S Prashanth
4+
* Copyright (C) 2025 Siemens Mobility GmbH
45
*
56
* SPDX-License-Identifier: Apache-2.0
67
*/
@@ -53,8 +54,8 @@ struct gpio_davinci_data {
5354
};
5455

5556
struct gpio_davinci_config {
56-
void (*bank_config)(const struct device *dev);
5757
struct gpio_driver_config common;
58+
void (*bank_config)(const struct device *dev);
5859

5960
DEVICE_MMIO_NAMED_ROM(port_base);
6061

0 commit comments

Comments
 (0)