Commit 94c739c
committed
resource/udev: read uncached sysfs value via pyudev
pyudev allows unsetting cached attribute values since
d935e2c ("Add device attribute unset()") [1], introduced in pyudev
v0.24.4.
Instead of working around udev and reading via sysfs, use that feature
in USBResource.read_attr() now and bump the pyudev version requirement
accordingly.
[1] pyudev/pyudev@d935e2c
Signed-off-by: Bastian Krause <bst@pengutronix.de>1 parent 61dfc07 commit 94c739c
2 files changed
Lines changed: 4 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
214 | 213 | | |
215 | 214 | | |
216 | 215 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
| 216 | + | |
224 | 217 | | |
225 | | - | |
226 | | - | |
| 218 | + | |
| 219 | + | |
227 | 220 | | |
228 | 221 | | |
229 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments