diff options
author | Andy Shevchenko <[email protected]> | 2023-06-21 19:31:22 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-06-22 08:59:56 +0200 |
commit | e6ecc0414c87126836d04b46cce8942e778226bb (patch) | |
tree | 44d9127035d0ea7863fe1c3272981e5f6d0c4a24 | |
parent | ff399bab86382c896c3922a570884bba287eb465 (diff) |
usb: ulpi: Make container_of() no-op in to_ulpi_dev()
Move embedded struct device member to make container_of() noop
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | include/linux/ulpi/driver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ulpi/driver.h b/include/linux/ulpi/driver.h index c7a1810373e3..a8cb617a3028 100644 --- a/include/linux/ulpi/driver.h +++ b/include/linux/ulpi/driver.h @@ -15,9 +15,9 @@ struct ulpi_ops; * @dev: device interface */ struct ulpi { + struct device dev; struct ulpi_device_id id; const struct ulpi_ops *ops; - struct device dev; }; #define to_ulpi_dev(d) container_of(d, struct ulpi, dev) |