usb: ulpi: remove calls to old api callbacks

Now that all users use the new api callbacks, remove the old api
callbacks and force new interface drivers to use the new api.

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>
This commit is contained in:
Tal Shorer 2016-08-16 19:04:49 +03:00 committed by Felipe Balbi
parent b7cf1dc341
commit 5c42f38795
2 changed files with 0 additions and 6 deletions

View File

@ -21,16 +21,12 @@
int ulpi_read(struct ulpi *ulpi, u8 addr) int ulpi_read(struct ulpi *ulpi, u8 addr)
{ {
if (!ulpi->ops->read_dev)
return ulpi->ops->read(ulpi->ops, addr);
return ulpi->ops->read_dev(ulpi->dev.parent, addr); return ulpi->ops->read_dev(ulpi->dev.parent, addr);
} }
EXPORT_SYMBOL_GPL(ulpi_read); EXPORT_SYMBOL_GPL(ulpi_read);
int ulpi_write(struct ulpi *ulpi, u8 addr, u8 val) int ulpi_write(struct ulpi *ulpi, u8 addr, u8 val)
{ {
if (!ulpi->ops->write_dev)
return ulpi->ops->write(ulpi->ops, addr, val);
return ulpi->ops->write_dev(ulpi->dev.parent, addr, val); return ulpi->ops->write_dev(ulpi->dev.parent, addr, val);
} }
EXPORT_SYMBOL_GPL(ulpi_write); EXPORT_SYMBOL_GPL(ulpi_write);

View File

@ -13,8 +13,6 @@ struct ulpi;
*/ */
struct ulpi_ops { struct ulpi_ops {
struct device *dev; struct device *dev;
int (*read)(struct ulpi_ops *ops, u8 addr);
int (*write)(struct ulpi_ops *ops, u8 addr, u8 val);
int (*read_dev)(struct device *dev, u8 addr); int (*read_dev)(struct device *dev, u8 addr);
int (*write_dev)(struct device *dev, u8 addr, u8 val); int (*write_dev)(struct device *dev, u8 addr, u8 val);
}; };