mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 15:14:38 +01:00
Couple of minor indentation/code style changes
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -71,8 +71,9 @@ err:
|
||||
return -errno;
|
||||
}
|
||||
|
||||
int ratbag_hidraw_raw_request(struct ratbag *ratbag, unsigned char reportnum,
|
||||
uint8_t *buf, size_t len, unsigned char rtype, int reqtype)
|
||||
int
|
||||
ratbag_hidraw_raw_request(struct ratbag *ratbag, unsigned char reportnum,
|
||||
uint8_t *buf, size_t len, unsigned char rtype, int reqtype)
|
||||
{
|
||||
char tmp_buf[HID_MAX_BUFFER_SIZE];
|
||||
int rc;
|
||||
@@ -106,7 +107,8 @@ int ratbag_hidraw_raw_request(struct ratbag *ratbag, unsigned char reportnum,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
int ratbag_hidraw_output_report(struct ratbag *ratbag, uint8_t *buf, size_t len)
|
||||
int
|
||||
ratbag_hidraw_output_report(struct ratbag *ratbag, uint8_t *buf, size_t len)
|
||||
{
|
||||
if (len < 1 || len > HID_MAX_BUFFER_SIZE || !buf || ratbag->hidraw_fd < 0)
|
||||
return -EINVAL;
|
||||
|
||||
@@ -51,7 +51,8 @@ int ratbag_open_hidraw(struct ratbag *ratbag);
|
||||
* Same behavior as hid_hw_request, but with raw buffers instead.
|
||||
*/
|
||||
int ratbag_hidraw_raw_request(struct ratbag *ratbag, unsigned char reportnum,
|
||||
uint8_t *buf, size_t len, unsigned char rtype, int reqtype);
|
||||
uint8_t *buf, size_t len, unsigned char rtype,
|
||||
int reqtype);
|
||||
|
||||
/**
|
||||
* ratbag_hidraw_output_report - send output report to device
|
||||
|
||||
Reference in New Issue
Block a user