Messages in this thread | | | From | Dzmitry Sankouski <> | Date | Fri, 22 Sep 2023 16:31:07 +0300 | Subject | Right place for pmic powermeter code |
| |
I'm working on pmic s2dos05 driver. It's basically a voltage regulator with ADC capable of measuring current and power. It is used in portable electronic devices, like smartphones, for example powering display and touchscreen in Samsung Galaxy S9, so the phone is able to estimate display power consumption. In the vendor kernel, it just has a bunch of sysfs attributes, and the measuring code in the regulator folder.
Where is the right place to put regulator power code, and where to expose it in sysfs?
| |