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:
parent
b7cf1dc341
commit
5c42f38795
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue