Merge lp:~mvo/snappy/15.04-lp1493389-gio into lp:~snappy-dev/snappy/15.04-deprecated

Proposed by Michael Vogt
Status: Merged
Approved by: Sergio Schvezov
Approved revision: 471
Merged at revision: 471
Proposed branch: lp:~mvo/snappy/15.04-lp1493389-gio
Merge into: lp:~snappy-dev/snappy/15.04-deprecated
Diff against target: 12 lines (+1/-1)
1 file modified
snappy/hwaccess.go (+1/-1)
To merge this branch: bzr merge lp:~mvo/snappy/15.04-lp1493389-gio
Reviewer Review Type Date Requested Status
Sergio Schvezov Approve
Review via email: mp+270505@code.launchpad.net

Commit message

snappy/hwaccess.go: make valid gpio access broader

Description of the change

Tiny branch that allows more gpio access for the hwassign feature.

To post a comment you must log in.
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

solid

review: Approve
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

We should probably make this an oem/gadget filter overridable; we never know where these can be exported to

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'snappy/hwaccess.go'
2--- snappy/hwaccess.go 2015-08-27 06:32:06 +0000
3+++ snappy/hwaccess.go 2015-09-09 09:28:35 +0000
4@@ -45,7 +45,7 @@
5
6 // Return true if the device string is a valid device
7 func validDevice(device string) bool {
8- validPrefixes := []string{"/dev", "/sys/devices", "/sys/class/gpio/export", "/sys/class/gpio/unexport"}
9+ validPrefixes := []string{"/dev", "/sys/devices", "/sys/class/gpio"}
10
11 for _, s := range validPrefixes {
12 if strings.HasPrefix(device, s) {

Subscribers

People subscribed via source and target branches