don't use devfs names: /dev/i2c/X -> /dev/i2c-X
authorAndreas Oberritter <obi@opendreambox.org>
Fri, 4 Feb 2011 23:59:14 +0000 (00:59 +0100)
committerAndreas Oberritter <obi@opendreambox.org>
Fri, 4 Feb 2011 23:59:14 +0000 (00:59 +0100)
lib/dvb/frontend.cpp

index ea9e73854e38d51deb14c519e389fb906102ee77..b5de46c9d30d6a5f1df939d612a5a1bc7dac50c2 100644 (file)
@@ -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];