Skip to content

Commit e6ecc04

Browse files
andy-shevgregkh
authored andcommitted
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>
1 parent ff399ba commit e6ecc04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/linux/ulpi/driver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ struct ulpi_ops;
1515
* @dev: device interface
1616
*/
1717
struct ulpi {
18+
struct device dev;
1819
struct ulpi_device_id id;
1920
const struct ulpi_ops *ops;
20-
struct device dev;
2121
};
2222

2323
#define to_ulpi_dev(d) container_of(d, struct ulpi, dev)

0 commit comments

Comments
 (0)