staging: unisys: Reduce indent
Remove some extra tabs in order to improve readalibility. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0aa5ae1e2e
commit
216c3e2c13
1 changed files with 24 additions and 25 deletions
|
@ -218,9 +218,9 @@ visorbus_release_device(struct device *xdev)
|
||||||
struct devmajorminor_attribute {
|
struct devmajorminor_attribute {
|
||||||
struct attribute attr;
|
struct attribute attr;
|
||||||
int slot;
|
int slot;
|
||||||
ssize_t (*show)(struct visor_device *, int slot, char *buf);
|
ssize_t (*show)(struct visor_device *, int slot, char *buf);
|
||||||
ssize_t (*store)(struct visor_device *, int slot, const char *buf,
|
ssize_t (*store)(struct visor_device *, int slot, const char *buf,
|
||||||
size_t count);
|
size_t count);
|
||||||
};
|
};
|
||||||
|
|
||||||
static ssize_t DEVMAJORMINOR_ATTR(struct visor_device *dev, int slot, char *buf)
|
static ssize_t DEVMAJORMINOR_ATTR(struct visor_device *dev, int slot, char *buf)
|
||||||
|
@ -1043,10 +1043,10 @@ write_vbus_chp_info(struct visorchannel *chan,
|
||||||
int off = sizeof(struct channel_header) + hdr_info->chp_info_offset;
|
int off = sizeof(struct channel_header) + hdr_info->chp_info_offset;
|
||||||
|
|
||||||
if (hdr_info->chp_info_offset == 0)
|
if (hdr_info->chp_info_offset == 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (visorchannel_write(chan, off, info, sizeof(*info)) < 0)
|
if (visorchannel_write(chan, off, info, sizeof(*info)) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1061,10 +1061,10 @@ write_vbus_bus_info(struct visorchannel *chan,
|
||||||
int off = sizeof(struct channel_header) + hdr_info->bus_info_offset;
|
int off = sizeof(struct channel_header) + hdr_info->bus_info_offset;
|
||||||
|
|
||||||
if (hdr_info->bus_info_offset == 0)
|
if (hdr_info->bus_info_offset == 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (visorchannel_write(chan, off, info, sizeof(*info)) < 0)
|
if (visorchannel_write(chan, off, info, sizeof(*info)) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1081,10 +1081,10 @@ write_vbus_dev_info(struct visorchannel *chan,
|
||||||
(hdr_info->device_info_struct_bytes * devix);
|
(hdr_info->device_info_struct_bytes * devix);
|
||||||
|
|
||||||
if (hdr_info->dev_info_offset == 0)
|
if (hdr_info->dev_info_offset == 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (visorchannel_write(chan, off, info, sizeof(*info)) < 0)
|
if (visorchannel_write(chan, off, info, sizeof(*info)) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1106,7 +1106,7 @@ fix_vbus_dev_info(struct visor_device *visordev)
|
||||||
struct spar_vbus_headerinfo *hdr_info;
|
struct spar_vbus_headerinfo *hdr_info;
|
||||||
|
|
||||||
if (!visordev->device.driver)
|
if (!visordev->device.driver)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
hdr_info = (struct spar_vbus_headerinfo *)visordev->vbus_hdr_info;
|
hdr_info = (struct spar_vbus_headerinfo *)visordev->vbus_hdr_info;
|
||||||
if (!hdr_info)
|
if (!hdr_info)
|
||||||
|
@ -1319,11 +1319,11 @@ static void
|
||||||
pause_state_change_complete(struct visor_device *dev, int status)
|
pause_state_change_complete(struct visor_device *dev, int status)
|
||||||
{
|
{
|
||||||
if (!dev->pausing)
|
if (!dev->pausing)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
dev->pausing = false;
|
dev->pausing = false;
|
||||||
if (!chipset_responders.device_pause) /* this can never happen! */
|
if (!chipset_responders.device_pause) /* this can never happen! */
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Notify the chipset driver that the pause is complete, which
|
/* Notify the chipset driver that the pause is complete, which
|
||||||
* will presumably want to send some sort of response to the
|
* will presumably want to send some sort of response to the
|
||||||
|
@ -1339,11 +1339,11 @@ static void
|
||||||
resume_state_change_complete(struct visor_device *dev, int status)
|
resume_state_change_complete(struct visor_device *dev, int status)
|
||||||
{
|
{
|
||||||
if (!dev->resuming)
|
if (!dev->resuming)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
dev->resuming = false;
|
dev->resuming = false;
|
||||||
if (!chipset_responders.device_resume) /* this can never happen! */
|
if (!chipset_responders.device_resume) /* this can never happen! */
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Notify the chipset driver that the resume is complete,
|
/* Notify the chipset driver that the resume is complete,
|
||||||
* which will presumably want to send some sort of response to
|
* which will presumably want to send some sort of response to
|
||||||
|
@ -1367,14 +1367,14 @@ initiate_chipset_device_pause_resume(struct visor_device *dev, bool is_pause)
|
||||||
else
|
else
|
||||||
notify_func = chipset_responders.device_resume;
|
notify_func = chipset_responders.device_resume;
|
||||||
if (!notify_func)
|
if (!notify_func)
|
||||||
goto away;
|
goto away;
|
||||||
|
|
||||||
drv = to_visor_driver(dev->device.driver);
|
drv = to_visor_driver(dev->device.driver);
|
||||||
if (!drv)
|
if (!drv)
|
||||||
goto away;
|
goto away;
|
||||||
|
|
||||||
if (dev->pausing || dev->resuming)
|
if (dev->pausing || dev->resuming)
|
||||||
goto away;
|
goto away;
|
||||||
|
|
||||||
/* Note that even though both drv->pause() and drv->resume
|
/* Note that even though both drv->pause() and drv->resume
|
||||||
* specify a callback function, it is NOT necessary for us to
|
* specify a callback function, it is NOT necessary for us to
|
||||||
|
@ -1385,7 +1385,7 @@ initiate_chipset_device_pause_resume(struct visor_device *dev, bool is_pause)
|
||||||
*/
|
*/
|
||||||
if (is_pause) {
|
if (is_pause) {
|
||||||
if (!drv->pause)
|
if (!drv->pause)
|
||||||
goto away;
|
goto away;
|
||||||
|
|
||||||
dev->pausing = true;
|
dev->pausing = true;
|
||||||
x = drv->pause(dev, pause_state_change_complete);
|
x = drv->pause(dev, pause_state_change_complete);
|
||||||
|
@ -1397,7 +1397,7 @@ initiate_chipset_device_pause_resume(struct visor_device *dev, bool is_pause)
|
||||||
* would never even get here in that case. */
|
* would never even get here in that case. */
|
||||||
fix_vbus_dev_info(dev);
|
fix_vbus_dev_info(dev);
|
||||||
if (!drv->resume)
|
if (!drv->resume)
|
||||||
goto away;
|
goto away;
|
||||||
|
|
||||||
dev->resuming = true;
|
dev->resuming = true;
|
||||||
x = drv->resume(dev, resume_state_change_complete);
|
x = drv->resume(dev, resume_state_change_complete);
|
||||||
|
@ -1413,7 +1413,7 @@ initiate_chipset_device_pause_resume(struct visor_device *dev, bool is_pause)
|
||||||
away:
|
away:
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
if (notify_func)
|
if (notify_func)
|
||||||
(*notify_func)(dev, rc);
|
(*notify_func)(dev, rc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1469,8 +1469,8 @@ visorbus_init(void)
|
||||||
|
|
||||||
away:
|
away:
|
||||||
if (rc)
|
if (rc)
|
||||||
POSTCODE_LINUX_3(CHIPSET_INIT_FAILURE_PC, rc,
|
POSTCODE_LINUX_3(CHIPSET_INIT_FAILURE_PC, rc,
|
||||||
POSTCODE_SEVERITY_ERR);
|
POSTCODE_SEVERITY_ERR);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1495,9 +1495,8 @@ visorbus_exit(void)
|
||||||
|
|
||||||
list_for_each_safe(listentry, listtmp, &list_all_bus_instances) {
|
list_for_each_safe(listentry, listtmp, &list_all_bus_instances) {
|
||||||
struct visor_device *dev = list_entry(listentry,
|
struct visor_device *dev = list_entry(listentry,
|
||||||
struct
|
struct visor_device,
|
||||||
visor_device,
|
list_all);
|
||||||
list_all);
|
|
||||||
remove_bus_instance(dev);
|
remove_bus_instance(dev);
|
||||||
}
|
}
|
||||||
remove_bus_type();
|
remove_bus_type();
|
||||||
|
|
Loading…
Add table
Reference in a new issue