Commit a87606c7 authored by Bryan Thompson's avatar Bryan Thompson Committed by Greg Kroah-Hartman

staging: unisys: virtpci: Fix CamelCase local variables in fix_vbus_dev_info()

Rename the following local variables in fix_vbus_dev_info()
Change pChan to chan
Change devInfo to dev_info
Signed-off-by: default avatarBryan Thompson <bryan.thompson@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ceddd0b3
...@@ -760,8 +760,8 @@ static void fix_vbus_dev_info(struct device *dev, int dev_no, int dev_type, ...@@ -760,8 +760,8 @@ static void fix_vbus_dev_info(struct device *dev, int dev_no, int dev_type,
struct virtpci_driver *virtpcidrv) struct virtpci_driver *virtpcidrv)
{ {
struct device *vbus; struct device *vbus;
void *pChan; void *chan;
struct ultra_vbus_deviceinfo devInfo; struct ultra_vbus_deviceinfo dev_info;
const char *stype; const char *stype;
if (!dev) { if (!dev) {
...@@ -777,8 +777,8 @@ static void fix_vbus_dev_info(struct device *dev, int dev_no, int dev_type, ...@@ -777,8 +777,8 @@ static void fix_vbus_dev_info(struct device *dev, int dev_no, int dev_type,
LOGERR("%s dev has no parent bus", __func__); LOGERR("%s dev has no parent bus", __func__);
return; return;
} }
pChan = vbus->platform_data; chan = vbus->platform_data;
if (!pChan) { if (!chan) {
LOGERR("%s dev bus has no channel", __func__); LOGERR("%s dev bus has no channel", __func__);
return; return;
} }
...@@ -793,17 +793,17 @@ static void fix_vbus_dev_info(struct device *dev, int dev_no, int dev_type, ...@@ -793,17 +793,17 @@ static void fix_vbus_dev_info(struct device *dev, int dev_no, int dev_type,
stype = "unknown"; stype = "unknown";
break; break;
} }
bus_device_info_init(&devInfo, stype, bus_device_info_init(&dev_info, stype,
virtpcidrv->name, virtpcidrv->name,
virtpcidrv->version, virtpcidrv->version,
virtpcidrv->vertag); virtpcidrv->vertag);
write_vbus_dev_info(pChan, &devInfo, dev_no); write_vbus_dev_info(chan, &dev_info, dev_no);
/* Re-write bus+chipset info, because it is possible that this /* Re-write bus+chipset info, because it is possible that this
* was previously written by our good counterpart, visorbus. * was previously written by our good counterpart, visorbus.
*/ */
write_vbus_chp_info(pChan, &chipset_driver_info); write_vbus_chp_info(chan, &chipset_driver_info);
write_vbus_bus_info(pChan, &bus_driver_info); write_vbus_bus_info(chan, &bus_driver_info);
} }
/* This function is called to query the existence of a specific device /* This function is called to query the existence of a specific device
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment