mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-04-13 09:59:31 +00: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:
parent
ff399bab86
commit
e6ecc0414c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue