]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
usb: ulpi: remove "dev" field from struct ulpi_ops
authorTal Shorer <tal.shorer@gmail.com>
Tue, 16 Aug 2016 16:04:51 +0000 (19:04 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 6 Sep 2016 07:47:25 +0000 (10:47 +0300)
Operations now use ulpi->dev.parent directly instead of via the
ulpi_ops struct, making this field unused. Remove it.

Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Tal Shorer <tal.shorer@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/common/ulpi.c
include/linux/ulpi/interface.h

index fdaed7c26c127839b80d320920f96b3e03c77d5b..0439e963881357f9e5a294ee21a2701b3a420396 100644 (file)
@@ -212,7 +212,6 @@ struct ulpi *ulpi_register_interface(struct device *dev, struct ulpi_ops *ops)
                return ERR_PTR(-ENOMEM);
 
        ulpi->ops = ops;
-       ops->dev = dev;
 
        ret = ulpi_register(dev, ulpi);
        if (ret) {
index ac3cd8058d9cf3a08ad8543efcbad55219e10ad2..cdedac87ed482fb4ac2fabd17fdc5f3414cf5e6a 100644 (file)
@@ -4,15 +4,14 @@
 #include <linux/types.h>
 
 struct ulpi;
+struct device;
 
 /**
  * struct ulpi_ops - ULPI register access
- * @dev: the interface provider
  * @read: read operation for ULPI register access
  * @write: write operation for ULPI register access
  */
 struct ulpi_ops {
-       struct device *dev;
        int (*read)(struct device *dev, u8 addr);
        int (*write)(struct device *dev, u8 addr, u8 val);
 };