mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 02:40:54 +07:00
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)
|
||||
{
|
||||
if (!ulpi->ops->read_dev)
|
||||
return ulpi->ops->read(ulpi->ops, addr);
|
||||
return ulpi->ops->read_dev(ulpi->dev.parent, addr);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(ulpi_read);
|
||||
|
||||
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);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(ulpi_write);
|
||||
|
@ -13,8 +13,6 @@ struct ulpi;
|
||||
*/
|
||||
struct ulpi_ops {
|
||||
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 (*write_dev)(struct device *dev, u8 addr, u8 val);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user