phy: add phy_get_bus_width()/phy_set_bus_width() calls
authorMatt Porter <mporter@linaro.org>
Thu, 19 Dec 2013 14:23:02 +0000 (09:23 -0500)
committerFelipe Balbi <balbi@ti.com>
Mon, 23 Dec 2013 20:26:17 +0000 (14:26 -0600)
commit8feed347d33bb630d426b9f2ed88cbdf9795f624
tree6755f5746b962e81361f5e9098043820cd5c806a
parente90b8417af0d01cf8c64da6937c914c89ccf6dc1
phy: add phy_get_bus_width()/phy_set_bus_width() calls

This adds a pair of APIs that allows the generic PHY subsystem to
provide information on the PHY bus width. The PHY provider driver may
use phy_set_bus_width() to set the bus width that the PHY supports.
The controller driver may then use phy_get_bus_width() to fetch the
PHY bus width in order to properly configure the controller.

Signed-off-by: Matt Porter <mporter@linaro.org>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
include/linux/phy/phy.h