From 9b203bf95bf47ea20ce54b8c1dd90ac90e1a8f25 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 19 Nov 2019 14:49:28 -0800 Subject: mpm: i2cdev: Use O_LARGEFILE to open i2c devices --- mpm/lib/i2c/i2cdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mpm/lib') 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)); -- cgit v1.2.3