mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
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 <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20230621163122.5693-1-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ff399bab86
commit
e6ecc0414c
@@ -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)
|
||||
|
Reference in New Issue
Block a user