aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2011-02-05 00:59:14 +0100
committerAndreas Oberritter <obi@opendreambox.org>2011-02-05 00:59:14 +0100
commit1f959e3bd0d5642d8b7381268cc4747028c38e9b (patch)
treeea5f83d58dda0f172e3daae231c2d62ac382c9e0
parent9e6540d48e789d62b9b3a5977969f6bb971c9b61 (diff)
downloadenigma2-1f959e3bd0d5642d8b7381268cc4747028c38e9b.tar.gz
enigma2-1f959e3bd0d5642d8b7381268cc4747028c38e9b.zip
don't use devfs names: /dev/i2c/X -> /dev/i2c-X
-rw-r--r--lib/dvb/frontend.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/dvb/frontend.cpp b/lib/dvb/frontend.cpp
index ea9e7385..b5de46c9 100644
--- a/lib/dvb/frontend.cpp
+++ b/lib/dvb/frontend.cpp
@@ -1860,11 +1860,11 @@ int eDVBFrontend::tuneLoopInt() // called by m_tuneTimer
int slotid = sec_fe->m_slotid;
// FIXMEEEEEE hardcoded i2c devices for dm7025 and dm8000
if (slotid < 2)
- sprintf(dev, "/dev/i2c/%d", slotid);
+ sprintf(dev, "/dev/i2c-%d", slotid);
else if (slotid == 2)
- sprintf(dev, "/dev/i2c/2"); // first nim socket on DM8000 use /dev/i2c/2
+ sprintf(dev, "/dev/i2c-2"); // first nim socket on DM8000 use /dev/i2c-2
else if (slotid == 3)
- sprintf(dev, "/dev/i2c/4"); // second nim socket on DM8000 use /dev/i2c/4
+ sprintf(dev, "/dev/i2c-4"); // second nim socket on DM8000 use /dev/i2c-4
int fd = ::open(dev, O_RDWR);
unsigned char data[2];