sysfs: Implement SMBus read/write byte data when I2C function is not available#72
sysfs: Implement SMBus read/write byte data when I2C function is not available#72jseely wants to merge 2 commits into
Conversation
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (0.0%) is below the target coverage (60.0%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #72 +/- ##
=======================================
+ Coverage 27.2% 27.5% +0.2%
=======================================
Files 96 96
Lines 11834 9518 -2316
=======================================
- Hits 3220 2613 -607
+ Misses 8479 6769 -1710
- Partials 135 136 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@maruel I'm currently working on getting some tests in place around this code. Are there any other changes you would want made to this PR? |
Helps with #15
This PR is the first step towards SMBus support.
Currently if I2C functionality isn't available on the I2C bus the Ioctl call fails with unsupported.
This implements Read/Write Byte Data SMBus calls for transactions with (len(r)==1 && len(w)==1) and (len(r)==0 && len(w)==2) respectively.