Skip to content

Commit fa6d513

Browse files
igianndanvet
authored andcommitted
drivers:gpu: vga :vga_switcheroo.c : Fixed some coding style issues
Fixed the following style issues drivers/gpu/vga/vga_switcheroo.c:98: WARNING: please, no space before tabs drivers/gpu/vga/vga_switcheroo.c:99: WARNING: please, no space before tabs drivers/gpu/vga/vga_switcheroo.c:102: WARNING: please, no space before tabs drivers/gpu/vga/vga_switcheroo.c:103: WARNING: please, no space before tabs drivers/gpu/vga/vga_switcheroo.c:129: WARNING: please, no space before tabs drivers/gpu/vga/vga_switcheroo.c:135: WARNING: please, no space before tabs drivers/gpu/vga/vga_switcheroo.c:217: WARNING: line over 80 characters drivers/gpu/vga/vga_switcheroo.c:218: WARNING: line over 80 characters drivers/gpu/vga/vga_switcheroo.c:308: WARNING: please, no space before tabs drivers/gpu/vga/vga_switcheroo.c:340: WARNING: line over 80 characters drivers/gpu/vga/vga_switcheroo.c:1087: WARNING: Block comments use * on subsequent lines drivers/gpu/vga/vga_switcheroo.c:1087: WARNING: Block comments use a trailing */ on a separate line Signed-off-by: Joan Jani <igiann@hotmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/HE1PR1001MB1148F38207BC31C860FAF06DC9560@HE1PR1001MB1148.EURPRD10.PROD.OUTLOOK.COM
1 parent 8dfe162 commit fa6d513

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

‎drivers/gpu/vga/vga_switcheroo.c‎

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,12 @@
9595
* @pwr_state: current power state
9696
* @ops: client callbacks
9797
* @id: client identifier. Determining the id requires the handler,
98-
* so gpus are initially assigned VGA_SWITCHEROO_UNKNOWN_ID
99-
* and later given their true id in vga_switcheroo_enable()
98+
* so gpus are initially assigned VGA_SWITCHEROO_UNKNOWN_ID
99+
* and later given their true id in vga_switcheroo_enable()
100100
* @active: whether the outputs are currently switched to this client
101101
* @driver_power_control: whether power state is controlled by the driver's
102-
* runtime pm. If true, writing ON and OFF to the vga_switcheroo debugfs
103-
* interface is a no-op so as not to interfere with runtime pm
102+
* runtime pm. If true, writing ON and OFF to the vga_switcheroo debugfs
103+
* interface is a no-op so as not to interfere with runtime pm
104104
* @list: client list
105105
*
106106
* Registered client. A client can be either a GPU or an audio device on a GPU.
@@ -126,13 +126,13 @@ static DEFINE_MUTEX(vgasr_mutex);
126126
/**
127127
* struct vgasr_priv - vga_switcheroo private data
128128
* @active: whether vga_switcheroo is enabled.
129-
* Prerequisite is the registration of two GPUs and a handler
129+
* Prerequisite is the registration of two GPUs and a handler
130130
* @delayed_switch_active: whether a delayed switch is pending
131131
* @delayed_client_id: client to which a delayed switch is pending
132132
* @debugfs_root: directory for vga_switcheroo debugfs interface
133133
* @switch_file: file for vga_switcheroo debugfs interface
134134
* @registered_clients: number of registered GPUs
135-
* (counting only vga clients, not audio clients)
135+
* (counting only vga clients, not audio clients)
136136
* @clients: list of registered clients
137137
* @handler: registered handler
138138
* @handler_flags: flags of registered handler
@@ -214,8 +214,9 @@ static void vga_switcheroo_enable(void)
214214
*
215215
* Return: 0 on success, -EINVAL if a handler was already registered.
216216
*/
217-
int vga_switcheroo_register_handler(const struct vga_switcheroo_handler *handler,
218-
enum vga_switcheroo_handler_flags_t handler_flags)
217+
int vga_switcheroo_register_handler(
218+
const struct vga_switcheroo_handler *handler,
219+
enum vga_switcheroo_handler_flags_t handler_flags)
219220
{
220221
mutex_lock(&vgasr_mutex);
221222
if (vgasr_priv.handler) {
@@ -305,7 +306,7 @@ static int register_client(struct pci_dev *pdev,
305306
* @pdev: client pci device
306307
* @ops: client callbacks
307308
* @driver_power_control: whether power state is controlled by the driver's
308-
* runtime pm
309+
* runtime pm
309310
*
310311
* Register vga client (GPU). Enable vga_switcheroo if another GPU and a
311312
* handler have already registered. The power state of the client is assumed
@@ -337,8 +338,8 @@ EXPORT_SYMBOL(vga_switcheroo_register_client);
337338
* Return: 0 on success, -ENOMEM on memory allocation error.
338339
*/
339340
int vga_switcheroo_register_audio_client(struct pci_dev *pdev,
340-
const struct vga_switcheroo_client_ops *ops,
341-
enum vga_switcheroo_client_id id)
341+
const struct vga_switcheroo_client_ops *ops,
342+
enum vga_switcheroo_client_id id)
342343
{
343344
return register_client(pdev, ops, id | ID_BIT_AUDIO, false, false);
344345
}
@@ -1084,7 +1085,8 @@ static int vga_switcheroo_runtime_resume_hdmi_audio(struct device *dev)
10841085
int ret;
10851086

10861087
/* we need to check if we have to switch back on the video
1087-
device so the audio device can come back */
1088+
* device so the audio device can come back
1089+
*/
10881090
mutex_lock(&vgasr_mutex);
10891091
list_for_each_entry(client, &vgasr_priv.clients, list) {
10901092
if (PCI_SLOT(client->pdev->devfn) == PCI_SLOT(pdev->devfn) &&
@@ -1112,7 +1114,7 @@ static int vga_switcheroo_runtime_resume_hdmi_audio(struct device *dev)
11121114

11131115
/**
11141116
* vga_switcheroo_init_domain_pm_optimus_hdmi_audio() - helper for driver
1115-
* power control
1117+
* power control
11161118
* @dev: audio client device
11171119
* @domain: power domain
11181120
*

0 commit comments

Comments
 (0)