Also the power_dev stuff for MTK

reviewable/pr11737/r7
NiLuJe 3 weeks ago
parent dba7b016ba
commit 33d7e3ddab

@ -797,6 +797,9 @@ function Kobo:init()
elseif util.fileExists("/dev/input/by-path/platform-bd71828-pwrkey.4.auto-event") then
-- Sage w/ a BD71828 PMIC
self.power_dev = "/dev/input/by-path/platform-bd71828-pwrkey.4.auto-event"
elseif util.fileExists("/dev/input/by-path/platform-bd71828-pwrkey.6.auto-event") then
-- MTK w/ a BD71828 PMIC
self.power_dev = "/dev/input/by-path/platform-bd71828-pwrkey.6.auto-event"
end
end

Loading…
Cancel
Save