Skip to content

Commit f302821

Browse files
SShubh123Kalle Valo
authored andcommitted
ssb: Fix indentation of comment
Shifted the closing */ to the next line This is done to maintain code uniformity. Acked-by: Michael Büsch <[email protected]> Signed-off-by: Shubhankar Kuranagatti <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/20210428162907.bn5q3oh3sji6wlh4@kewl-virtual-machine
1 parent 2a3d830 commit f302821

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

drivers/ssb/main.c

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,17 @@ static LIST_HEAD(buses);
3737
/* Software ID counter */
3838
static unsigned int next_busnumber;
3939
/* buses_mutes locks the two buslists and the next_busnumber.
40-
* Don't lock this directly, but use ssb_buses_[un]lock() below. */
40+
* Don't lock this directly, but use ssb_buses_[un]lock() below.
41+
*/
4142
static DEFINE_MUTEX(buses_mutex);
4243

4344
/* There are differences in the codeflow, if the bus is
4445
* initialized from early boot, as various needed services
4546
* are not available early. This is a mechanism to delay
4647
* these initializations to after early boot has finished.
4748
* It's also used to avoid mutex locking, as that's not
48-
* available and needed early. */
49+
* available and needed early.
50+
*/
4951
static bool ssb_is_early_boot = 1;
5052

5153
static void ssb_buses_lock(void);
@@ -161,7 +163,8 @@ int ssb_bus_resume(struct ssb_bus *bus)
161163
int err;
162164

163165
/* Reset HW state information in memory, so that HW is
164-
* completely reinitialized. */
166+
* completely reinitialized.
167+
*/
165168
bus->mapped_device = NULL;
166169
#ifdef CONFIG_SSB_DRIVER_PCICORE
167170
bus->pcicore.setup_done = 0;
@@ -467,7 +470,8 @@ static int ssb_devices_register(struct ssb_bus *bus)
467470
sdev = &(bus->devices[i]);
468471

469472
/* We don't register SSB-system devices to the kernel,
470-
* as the drivers for them are built into SSB. */
473+
* as the drivers for them are built into SSB.
474+
*/
471475
switch (sdev->id.coreid) {
472476
case SSB_DEV_CHIPCOMMON:
473477
case SSB_DEV_PCI:
@@ -521,7 +525,8 @@ static int ssb_devices_register(struct ssb_bus *bus)
521525
if (err) {
522526
pr_err("Could not register %s\n", dev_name(dev));
523527
/* Set dev to NULL to not unregister
524-
* dev on error unwinding. */
528+
* dev on error unwinding.
529+
*/
525530
sdev->dev = NULL;
526531
put_device(dev);
527532
goto error;
@@ -667,7 +672,8 @@ ssb_bus_register(struct ssb_bus *bus,
667672
ssb_bus_may_powerdown(bus);
668673

669674
/* Queue it for attach.
670-
* See the comment at the ssb_is_early_boot definition. */
675+
* See the comment at the ssb_is_early_boot definition.
676+
*/
671677
list_add_tail(&bus->list, &attach_queue);
672678
if (!ssb_is_early_boot) {
673679
/* This is not early boot, so we must attach the bus now */
@@ -1007,7 +1013,8 @@ static void ssb_flush_tmslow(struct ssb_device *dev)
10071013
* a machine check exception otherwise.
10081014
* Do this by reading the register back to commit the
10091015
* PCI write and delay an additional usec for the device
1010-
* to react to the change. */
1016+
* to react to the change.
1017+
*/
10111018
ssb_read32(dev, SSB_TMSLOW);
10121019
udelay(1);
10131020
}
@@ -1044,7 +1051,8 @@ void ssb_device_enable(struct ssb_device *dev, u32 core_specific_flags)
10441051
EXPORT_SYMBOL(ssb_device_enable);
10451052

10461053
/* Wait for bitmask in a register to get set or cleared.
1047-
* timeout is in units of ten-microseconds */
1054+
* timeout is in units of ten-microseconds
1055+
*/
10481056
static int ssb_wait_bits(struct ssb_device *dev, u16 reg, u32 bitmask,
10491057
int timeout, int set)
10501058
{
@@ -1153,7 +1161,8 @@ int ssb_bus_may_powerdown(struct ssb_bus *bus)
11531161

11541162
/* On buses where more than one core may be working
11551163
* at a time, we must not powerdown stuff if there are
1156-
* still cores that may want to run. */
1164+
* still cores that may want to run.
1165+
*/
11571166
if (bus->bustype == SSB_BUSTYPE_SSB)
11581167
goto out;
11591168

@@ -1322,7 +1331,8 @@ static int __init ssb_modinit(void)
13221331
}
13231332
/* ssb must be initialized after PCI but before the ssb drivers.
13241333
* That means we must use some initcall between subsys_initcall
1325-
* and device_initcall. */
1334+
* and device_initcall.
1335+
*/
13261336
fs_initcall(ssb_modinit);
13271337

13281338
static void __exit ssb_modexit(void)

0 commit comments

Comments
 (0)