@@ -177,7 +177,7 @@ enum sam_event_cid_tmp {
177
177
struct san_event_work {
178
178
struct delayed_work work ;
179
179
struct device * dev ;
180
- struct ssam_event event ; // must be last
180
+ struct ssam_event event ; /* must be last */
181
181
};
182
182
183
183
static int san_acpi_notify_event (struct device * dev , u64 func ,
@@ -410,39 +410,39 @@ struct gsb_data_in {
410
410
} __packed ;
411
411
412
412
struct gsb_data_rqsx {
413
- u8 cv ; // command value (san_gsb_request_cv)
414
- u8 tc ; // target category
415
- u8 tid ; // target ID
416
- u8 iid ; // instance ID
417
- u8 snc ; // expect -response-flag?
418
- u8 cid ; // command ID
419
- u16 cdl ; // payload length
420
- u8 pld []; // payload
413
+ u8 cv ; /* Command value (san_gsb_request_cv). */
414
+ u8 tc ; /* Target category. */
415
+ u8 tid ; /* Target ID. */
416
+ u8 iid ; /* Instance ID. */
417
+ u8 snc ; /* Expect -response-flag. */
418
+ u8 cid ; /* Command ID. */
419
+ u16 cdl ; /* Payload length. */
420
+ u8 pld []; /* Payload. */
421
421
} __packed ;
422
422
423
423
struct gsb_data_etwl {
424
- u8 cv ; // command value (should be 0x02)
425
- u8 etw3 ; // unknown
426
- u8 etw4 ; // unknown
427
- u8 msg []; // error message (ASCIIZ)
424
+ u8 cv ; /* Command value (should be 0x02). */
425
+ u8 etw3 ; /* Unknown. */
426
+ u8 etw4 ; /* Unknown. */
427
+ u8 msg []; /* Error message (ASCIIZ). */
428
428
} __packed ;
429
429
430
430
struct gsb_data_out {
431
- u8 status ; // _SSH communication status
432
- u8 len ; // _SSH payload length
433
- u8 pld []; // _SSH payload
431
+ u8 status ; /* _SSH communication status. */
432
+ u8 len ; /* _SSH payload length. */
433
+ u8 pld []; /* _SSH payload. */
434
434
} __packed ;
435
435
436
436
union gsb_buffer_data {
437
- struct gsb_data_in in ; // common input
438
- struct gsb_data_rqsx rqsx ; // RQSX input
439
- struct gsb_data_etwl etwl ; // ETWL input
440
- struct gsb_data_out out ; // output
437
+ struct gsb_data_in in ; /* Common input. */
438
+ struct gsb_data_rqsx rqsx ; /* RQSX input. */
439
+ struct gsb_data_etwl etwl ; /* ETWL input. */
440
+ struct gsb_data_out out ; /* Output. */
441
441
};
442
442
443
443
struct gsb_buffer {
444
- u8 status ; // GSB AttribRawProcess status
445
- u8 len ; // GSB AttribRawProcess length
444
+ u8 status ; /* GSB AttribRawProcess status. */
445
+ u8 len ; /* GSB AttribRawProcess length. */
446
446
union gsb_buffer_data data ;
447
447
} __packed ;
448
448
@@ -472,7 +472,7 @@ static acpi_status san_etwl(struct san_data *d, struct gsb_buffer *b)
472
472
(unsigned int )(b -> len - sizeof (struct gsb_data_etwl )),
473
473
(char * )etwl -> msg );
474
474
475
- // indicate success
475
+ /* Indicate success. */
476
476
b -> status = 0x00 ;
477
477
b -> len = 0x00 ;
478
478
@@ -579,7 +579,7 @@ static acpi_status san_rqst(struct san_data *d, struct gsb_buffer *buffer)
579
579
rsp .length = 0 ;
580
580
rsp .pointer = & rspbuf [0 ];
581
581
582
- // handle suspended device
582
+ /* Handle suspended device. */
583
583
if (d -> dev -> power .is_suspended ) {
584
584
dev_warn (d -> dev , "rqst: device is suspended, not executing\n" );
585
585
return san_rqst_fixup_suspended (d , & rqst , buffer );
@@ -644,7 +644,7 @@ static acpi_status san_opreg_handler(u32 function,
644
644
return AE_OK ;
645
645
}
646
646
647
- // buffer must have at least contain the command-value
647
+ /* Buffer must have at least contain the command-value. */
648
648
if (buffer -> len == 0 ) {
649
649
dev_err (d -> dev , "request-package too small\n" );
650
650
return AE_OK ;
@@ -766,13 +766,13 @@ static acpi_status san_consumer_setup(acpi_handle handle, u32 lvl,
766
766
if (!is_san_consumer (pdev , handle ))
767
767
return AE_OK ;
768
768
769
- // ignore ACPI devices that are not present
769
+ /* Ignore ACPI devices that are not present. */
770
770
if (acpi_bus_get_device (handle , & adev ) != 0 )
771
771
return AE_OK ;
772
772
773
773
san_consumer_dbg (& pdev -> dev , handle , "creating device link\n" );
774
774
775
- // try to set up device links, ignore but log errors
775
+ /* Try to set up device links, ignore but log errors. */
776
776
link = device_link_add (& adev -> dev , & pdev -> dev , flags );
777
777
if (!link ) {
778
778
san_consumer_warn (& pdev -> dev , handle ,
0 commit comments