summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonrad Kuchciak <k.kuchciak@samsung.com>2018-09-04 06:56:47 +0200
committerKonrad Kuchciak <k.kuchciak@samsung.com>2018-09-04 07:00:10 +0200
commit9c1da4c5884d9caf69f2a2105feafa1b95d0fd20 (patch)
tree329a710ef70ee7ff4921b2ba8224ae12809bd130
parent027d0947d6148ebb16bb62531ed7f3e09b747be2 (diff)
downloadperipheral-bus-accepted/tizen_5.0_unified.tar.gz
peripheral-bus-accepted/tizen_5.0_unified.tar.bz2
peripheral-bus-accepted/tizen_5.0_unified.zip
Change-Id: I0a32f3fd5bf3096ab38ab88a97fc37eab965f6ca Signed-off-by: Konrad Kuchciak <k.kuchciak@samsung.com>
-rw-r--r--packaging/90-peripheral-io.rules5
1 files changed, 5 insertions, 0 deletions
diff --git a/packaging/90-peripheral-io.rules b/packaging/90-peripheral-io.rules
index ca910bd..50cee54 100644
--- a/packaging/90-peripheral-io.rules
+++ b/packaging/90-peripheral-io.rules
@@ -16,3 +16,8 @@ SUBSYSTEM=="i2c-dev", KERNEL=="i2c-*", ACTION=="add", \
SUBSYSTEM=="spidev", KERNEL=="spidev*.*", ACTION=="add", \
MODE="0660", OWNER="root", GROUP="root", SECLABEL{smack}="*"
+
+SUBSYSTEM=="iio", KERNEL=="iio*", PROGRAM="/bin/sh -c 'find /sys%p/ | grep in_voltage'", ACTION=="add", \
+ RUN+="/bin/chown root:root %c", \
+ RUN+="/bin/chmod 0660 %c", \
+ RUN+="/bin/chsmack -a * %c"