staging: unisys: fix CamelCase in bus_device_info_init()

Fix CamelCase names:
BusDeviceInfo_Init => bus_device_info_init
pBusDeviceInfo => bus_device_info_ptr
deviceType => dev_type
driverName => driver_name
verTag => ver_tag

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Benjamin Romer 2014-09-30 12:08:14 -04:00 committed by Greg Kroah-Hartman
parent a56db94c7e
commit 534429dbb9
4 changed files with 20 additions and 18 deletions

View File

@ -25,20 +25,22 @@
#define TARGET_HOSTNAME "linuxguest" #define TARGET_HOSTNAME "linuxguest"
static inline void static inline void bus_device_info_init(
BusDeviceInfo_Init(ULTRA_VBUS_DEVICEINFO *pBusDeviceInfo, ULTRA_VBUS_DEVICEINFO * bus_device_info_ptr,
const char *deviceType, const char *driverName, const char *dev_type, const char *drv_name,
const char *ver, const char *verTag) const char *ver, const char *ver_tag)
{ {
memset(pBusDeviceInfo, 0, sizeof(ULTRA_VBUS_DEVICEINFO)); memset(bus_device_info_ptr, 0, sizeof(ULTRA_VBUS_DEVICEINFO));
snprintf(pBusDeviceInfo->devType, sizeof(pBusDeviceInfo->devType), snprintf(bus_device_info_ptr->devType,
"%s", (deviceType) ? deviceType : "unknownType"); sizeof(bus_device_info_ptr->devType),
snprintf(pBusDeviceInfo->drvName, sizeof(pBusDeviceInfo->drvName), "%s", (dev_type) ? dev_type : "unknownType");
"%s", (driverName) ? driverName : "unknownDriver"); snprintf(bus_device_info_ptr->drvName,
snprintf(pBusDeviceInfo->infoStrings, sizeof(bus_device_info_ptr->drvName),
sizeof(pBusDeviceInfo->infoStrings), "%s\t%s\t%s", "%s", (drv_name) ? drv_name : "unknownDriver");
snprintf(bus_device_info_ptr->infoStrings,
sizeof(bus_device_info_ptr->infoStrings), "%s\t%s\t%s",
(ver) ? ver : "unknownVer", (ver) ? ver : "unknownVer",
(verTag) ? verTag : "unknownVerTag", (ver_tag) ? ver_tag : "unknownVerTag",
TARGET_HOSTNAME); TARGET_HOSTNAME);
} }

View File

@ -97,7 +97,7 @@ uisctrl_register_req_handler(int type, void *fptr,
return 0; return 0;
} }
if (chipset_DriverInfo) if (chipset_DriverInfo)
BusDeviceInfo_Init(chipset_DriverInfo, "chipset", "uislib", bus_device_info_init(chipset_DriverInfo, "chipset", "uislib",
VERSION, NULL); VERSION, NULL);
return 1; return 1;
@ -150,7 +150,7 @@ uisctrl_register_req_handler_ex(uuid_le switchTypeGuid,
Away: Away:
if (rc) { if (rc) {
if (chipset_DriverInfo) if (chipset_DriverInfo)
BusDeviceInfo_Init(chipset_DriverInfo, "chipset", bus_device_info_init(chipset_DriverInfo, "chipset",
"uislib", VERSION, NULL); "uislib", VERSION, NULL);
} else } else
LOGERR("failed to register type %pUL.\n", &switchTypeGuid); LOGERR("failed to register type %pUL.\n", &switchTypeGuid);

View File

@ -792,7 +792,7 @@ static void fix_vbus_devInfo(struct device *dev, int devNo, int devType,
stype = "unknown"; stype = "unknown";
break; break;
} }
BusDeviceInfo_Init(&devInfo, stype, bus_device_info_init(&devInfo, stype,
virtpcidrv->name, virtpcidrv->name,
virtpcidrv->version, virtpcidrv->version,
virtpcidrv->vertag); virtpcidrv->vertag);
@ -1515,7 +1515,7 @@ static int __init virtpci_mod_init(void)
return ret; return ret;
} }
DBGINF("bus_register successful\n"); DBGINF("bus_register successful\n");
BusDeviceInfo_Init(&Bus_DriverInfo, "clientbus", "virtpci", bus_device_info_init(&Bus_DriverInfo, "clientbus", "virtpci",
VERSION, NULL); VERSION, NULL);
/* create a root bus used to parent all the virtpci buses. */ /* create a root bus used to parent all the virtpci buses. */

View File

@ -601,7 +601,7 @@ visorchipset_register_busdev_server(VISORCHIPSET_BUSDEV_NOTIFIERS *notifiers,
if (responders) if (responders)
*responders = BusDev_Responders; *responders = BusDev_Responders;
if (driverInfo) if (driverInfo)
BusDeviceInfo_Init(driverInfo, "chipset", "visorchipset", bus_device_info_init(driverInfo, "chipset", "visorchipset",
VERSION, NULL); VERSION, NULL);
up(&NotifierLock); up(&NotifierLock);
@ -625,7 +625,7 @@ visorchipset_register_busdev_client(VISORCHIPSET_BUSDEV_NOTIFIERS *notifiers,
if (responders) if (responders)
*responders = BusDev_Responders; *responders = BusDev_Responders;
if (driverInfo) if (driverInfo)
BusDeviceInfo_Init(driverInfo, "chipset(bolts)", "visorchipset", bus_device_info_init(driverInfo, "chipset(bolts)", "visorchipset",
VERSION, NULL); VERSION, NULL);
up(&NotifierLock); up(&NotifierLock);
} }