diff options
author | Eli Billauer <eli.billauer@gmail.com> | 2014-09-04 17:47:41 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-08 13:58:18 -0700 |
commit | 3cbc747946d9c4c0c018744fccfba952b7f8bcf0 (patch) | |
tree | 99c99c04df954f5e37843565baed2d0087cbf8da /drivers/staging/xillybus | |
parent | 5899005f94b66a1ec3f06d299bb2625098cc9720 (diff) | |
download | linux-3cbc747946d9c4c0c018744fccfba952b7f8bcf0.tar.gz linux-3cbc747946d9c4c0c018744fccfba952b7f8bcf0.tar.bz2 linux-3cbc747946d9c4c0c018744fccfba952b7f8bcf0.zip |
staging: xillybus: Use SEEK_* predefined constants
Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Eli Billauer <eli.billauer@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/xillybus')
-rw-r--r-- | drivers/staging/xillybus/xillybus_core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/staging/xillybus/xillybus_core.c index cacd560dd6d9..61699fa5127b 100644 --- a/drivers/staging/xillybus/xillybus_core.c +++ b/drivers/staging/xillybus/xillybus_core.c @@ -1720,13 +1720,13 @@ static loff_t xillybus_llseek(struct file *filp, loff_t offset, int whence) mutex_lock(&channel->rd_mutex); switch (whence) { - case 0: + case SEEK_SET: pos = offset; break; - case 1: + case SEEK_CUR: pos += offset; break; - case 2: + case SEEK_END: pos = offset; /* Going to the end => to the beginning */ break; default: |