Corinna Vinschen e86755b9fd 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>
2023-10-29 22:13:01 +00:00
2023-10-29 22:13:01 +00:00
2023-10-24 16:15:46 +03:00
2023-10-29 22:13:01 +00:00
2023-10-29 22:13:01 +00:00
2023-10-29 22:13:01 +00:00
2023-10-29 22:13:01 +00:00
2019-09-13 12:00:27 +05:30
2019-09-13 12:00:27 +05:30
2023-10-29 22:13:01 +00:00
2023-10-29 22:13:01 +00:00
2023-10-29 22:13:01 +00:00
2023-10-29 22:13:01 +00:00
2023-10-29 22:13:01 +00:00
Description
android_vendor_qcom_opensource_power
374 KiB
Languages
C 83.5%
C++ 12%
Makefile 4.5%