linux-newbie.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Marangoni <thomas@marangoni.cc>
To: linux-newbie@vger.kernel.org
Subject: Trying to improve a kernel driver
Date: Tue, 10 Aug 2021 09:24:43 +0200	[thread overview]
Message-ID: <50d3f5fc-64b6-99fd-3992-9eb9f2843746@marangoni.cc> (raw)

Hello,
I'm new to developing kernel drivers and want to improve the driver of 
the axp209 power management chip. I've read the documentation about the 
Linux power supply class 
(https://www.kernel.org/doc/html/latest/power/power_supply_class.html) 
and there it says: "Power supply class is extensible, and allows to 
define drivers own attributes.". The Problem is I couldn't find an 
example of how to add own attributes. My goal is to have an own 
attribute showing up at /sys/class/power_supply/axp20x-battery/

If someone can give me a hint, extended documentation or a better place 
to ask, that would be great!


                 reply	other threads:[~2021-08-10  7:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50d3f5fc-64b6-99fd-3992-9eb9f2843746@marangoni.cc \
    --to=thomas@marangoni.cc \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).