diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-11-19 14:49:28 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-22 21:27:37 -0800 |
commit | 9b203bf95bf47ea20ce54b8c1dd90ac90e1a8f25 (patch) | |
tree | 0b581d2c91c5c7d5890bc1788f7b5ab1b3eca4c5 /mpm/lib | |
parent | 39807cc9e2f554c626ab386996064e707e7e310f (diff) | |
download | uhd-9b203bf95bf47ea20ce54b8c1dd90ac90e1a8f25.tar.gz uhd-9b203bf95bf47ea20ce54b8c1dd90ac90e1a8f25.tar.bz2 uhd-9b203bf95bf47ea20ce54b8c1dd90ac90e1a8f25.zip |
mpm: i2cdev: Use O_LARGEFILE to open i2c devices
Diffstat (limited to 'mpm/lib')
-rw-r--r-- | mpm/lib/i2c/i2cdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mpm/lib/i2c/i2cdev.c b/mpm/lib/i2c/i2cdev.c index 2ced96870..226cc3d15 100644 --- a/mpm/lib/i2c/i2cdev.c +++ b/mpm/lib/i2c/i2cdev.c @@ -1,5 +1,6 @@ // // Copyright 2018 Ettus Research, a National Instruments Company +// Copyright 2019 Ettus Research, a National Instruments Brand // // SPDX-License-Identifier: GPL-3.0-or-later // @@ -22,7 +23,7 @@ int i2cdev_open(int *fd, const char *device, const unsigned int timeout_ms) return -EINVAL; } - *fd = open(device, O_RDWR); + *fd = open(device, O_RDWR | O_LARGEFILE); if (*fd < 0) { fprintf(stderr, "%s: Failed to open device. %s\n", __func__, strerror(*fd)); |