aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorGuenter Roeck <[email protected]>2019-02-06 18:39:59 +0100
committerLee Jones <[email protected]>2019-02-07 10:44:24 +0000
commitc1778e5819a9784b5551cf8f7abd66571c1239e2 (patch)
tree195e122b9ecf24edc85eddd729df532449f83b9d /net/lapb/lapb_timer.c
parent66265e719b4603ef9a1b8a6c876bcb542c021496 (diff)
mfd: cros_ec_dev: Return number of bytes read with CROS_EC_DEV_IOCRDMEM
While ioctls normally return a negative error or 0 on success, this is not the case for CROS_EC_DEV_IOCXCMD in the cros_ec driver, which returns the number of bytes read instead. However, CROS_EC_DEV_IOCRDMEM in the same driver does not return the number of byte read on success. This is both inconsistent and problematic, since the amount of returned data can be dynamic. Have it return the number of data bytes for consistency. Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Enric Balletbo i Serra <[email protected]> Reviewed-by: Benson Leung <[email protected]> Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions