1
0
forked from drath/libratbag

Couple of minor indentation/code style changes

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2015-08-17 17:19:13 +10:00
parent 6c6df9409f
commit b7438d2ed2
2 changed files with 7 additions and 4 deletions

View File

@@ -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;

View File

@@ -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