Skip to content

Commit

Permalink
Add devices to i2c database
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Aug 21, 2014
1 parent e4516c5 commit 06e3f4e
Show file tree
Hide file tree
Showing 2 changed files with 441 additions and 3 deletions.
2 changes: 1 addition & 1 deletion I-Nex/i-nex/.src/i2c.module
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Public Sub _inits()
vendor = Replace(File.Load("/sys/bus/pci/devices/" & element & "/vendor"), "\n", "")
device = Replace(File.Load("/sys/bus/pci/devices/" & element & "/device"), "\n", "")
For i = 0 To I2C_BUSES["I2C"].Count - 1
If I2C_BUSES["I2C"][i]["vendid"] = vendor And I2C_BUSES["I2C"][i]["devid"] = device Then
If LCase(I2C_BUSES["I2C"][i]["vendid"]) = vendor And LCase(I2C_BUSES["I2C"][i]["devid"]) = device Then
Print "Found: " & I2C_BUSES["I2C"][i]["procid"]
Print "Need modprobe: eeprom " & I2C_BUSES["I2C"][i]["driver"]
Print "#Udev rule for " & I2C_BUSES["I2C"][i]["procid"] & ":"
Expand Down

0 comments on commit 06e3f4e

Please sign in to comment.