From: Andy Shevchenko Date: Wed, 21 Jun 2023 16:31:22 +0000 (+0300) Subject: usb: ulpi: Make container_of() no-op in to_ulpi_dev() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e6ecc0414c87126836d04b46cce8942e778226bb;p=linux.git 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 Link: https://lore.kernel.org/r/20230621163122.5693-1-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/ulpi/driver.h b/include/linux/ulpi/driver.h index c7a1810373e39..a8cb617a30280 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)