[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CABTCjFCe0-Ghy4roZHnuXpRataQVd3OOaPDH-ZvDQxZu11Uvxw@mail.gmail.com>
Date: Fri, 22 Sep 2023 16:31:07 +0300
From: Dzmitry Sankouski <dsankouski@...il.com>
To: linux-kernel@...r.kernel.org
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?
Powered by blists - more mailing lists