mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
phy: rockchip-inno-usb2: fix comparison warnings
This patches fixes comparison between signed and unsigned values. Change-Id: Ie417fdb8092463890a67bce7efa11f3ef20d5871 Signed-off-by: William Wu <william.wu@rock-chips.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
This commit is contained in:
@@ -844,7 +844,7 @@ static ssize_t otg_mode_show(struct device *device,
|
||||
{
|
||||
struct rockchip_usb2phy *rphy = dev_get_drvdata(device);
|
||||
struct rockchip_usb2phy_port *rport = NULL;
|
||||
int index;
|
||||
unsigned int index;
|
||||
|
||||
for (index = 0; index < rphy->phy_cfg->num_ports; index++) {
|
||||
rport = &rphy->ports[index];
|
||||
@@ -882,7 +882,8 @@ static ssize_t otg_mode_store(struct device *device,
|
||||
struct rockchip_usb2phy_port *rport = NULL;
|
||||
struct regmap *base = get_reg_base(rphy);
|
||||
enum usb_dr_mode new_dr_mode;
|
||||
int index, rc = count;
|
||||
unsigned int index;
|
||||
int rc = count;
|
||||
|
||||
for (index = 0; index < rphy->phy_cfg->num_ports; index++) {
|
||||
rport = &rphy->ports[index];
|
||||
@@ -1728,7 +1729,8 @@ static int rockchip_usb2phy_probe(struct platform_device *pdev)
|
||||
const struct rockchip_usb2phy_cfg *phy_cfgs;
|
||||
const struct of_device_id *match;
|
||||
unsigned int reg;
|
||||
int index, ret;
|
||||
unsigned int index;
|
||||
int ret;
|
||||
|
||||
rphy = devm_kzalloc(dev, sizeof(*rphy), GFP_KERNEL);
|
||||
if (!rphy)
|
||||
@@ -2079,7 +2081,7 @@ static int rockchip_usb2phy_pm_suspend(struct device *dev)
|
||||
{
|
||||
struct rockchip_usb2phy *rphy = dev_get_drvdata(dev);
|
||||
struct rockchip_usb2phy_port *rport;
|
||||
int index;
|
||||
unsigned int index;
|
||||
int ret = 0;
|
||||
|
||||
for (index = 0; index < rphy->phy_cfg->num_ports; index++) {
|
||||
@@ -2120,7 +2122,7 @@ static int rockchip_usb2phy_pm_resume(struct device *dev)
|
||||
{
|
||||
struct rockchip_usb2phy *rphy = dev_get_drvdata(dev);
|
||||
struct rockchip_usb2phy_port *rport;
|
||||
int index;
|
||||
unsigned int index;
|
||||
int ret = 0;
|
||||
|
||||
if (rphy->phy_cfg->phy_tuning)
|
||||
|
||||
Reference in New Issue
Block a user