summaryrefslogtreecommitdiffstats
path: root/power-8909.c
diff options
context:
space:
mode:
authorCorinna Vinschen <xda@vinschen.de>2018-04-10 11:57:37 +0200
committerMichael Bestas <mkbestas@lineageos.org>2019-10-23 01:12:56 +0300
commit71c7488ae10003c7d2f28fb68bd1188b1a426793 (patch)
treef40b4829b79a17a0386e87f1d3906db954effc43 /power-8909.c
parent7dbfef3f4f963a5b05655346d0b4db2a0d27044a (diff)
downloadvendor_qcom_opensource_power-71c7488ae10003c7d2f28fb68bd1188b1a426793.tar.gz
vendor_qcom_opensource_power-71c7488ae10003c7d2f28fb68bd1188b1a426793.tar.bz2
vendor_qcom_opensource_power-71c7488ae10003c7d2f28fb68bd1188b1a426793.zip
power: fix sysfs_read/sysfs_write usage
* The incoming path to sysfs_read/sysfs_write should be const, as in open(2) call. * Redefine scaling_gov_path as const pointer array. * Since sysfs_read works on a simple absolute path anyway, make sure the scaling_gov_path paths *are* absolute. Otherwise the code only works if Power HAL has / as CWD, which is a bit fragile. Change-Id: I70c08f8137842569514bcb3f6e0617d46044e6ab Signed-off-by: Corinna Vinschen <xda@vinschen.de>
Diffstat (limited to 'power-8909.c')
0 files changed, 0 insertions, 0 deletions