From: Cosmin Tanislav <demonsingur@gmail.com>
To: Guenter Roeck <linux@roeck-us.net>
Cc: cosmin.tanislav@analog.com, demonsingur@gmail.com,
Jean Delvare <jdelvare@suse.com>,
Jonathan Corbet <corbet@lwn.net>,
linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v2 0/1] Add hwmon debugfs register access
Date: Tue, 28 Dec 2021 00:42:00 +0200 [thread overview]
Message-ID: <20211227224201.508331-1-demonsingur@gmail.com> (raw)
V1 -> V2:
* remove error messages that are reported to userspace
* remove IS_ERR checks that are already done by called functions
* unconditionally define hwmon_device_{un,}register_debugfs
* unconditionally define struct hwmon_device members
* match hwmon_debugfs_read_reg parameter indentation with
hwmon_debugfs_write_reg parameter indentation
* inline hdev in reg_access calls
* remove useless initialization of val inside hwmon_debugfs_read_reg
* move checks outside of hwmon_device_register_debugfs
* debugfs_reg_access -> reg_access
* lookup device debugfs dentry rather than storing it in
struct hwmon_device
Cosmin Tanislav (1):
hwmon: Add debugfs register access
Documentation/hwmon/hwmon-kernel-api.rst | 9 +++
drivers/hwmon/hwmon.c | 99 ++++++++++++++++++++++++
include/linux/hwmon.h | 12 +++
3 files changed, 120 insertions(+)
--
2.34.1
next reply other threads:[~2021-12-27 22:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-27 22:42 Cosmin Tanislav [this message]
2021-12-27 22:42 ` [PATCH v2 1/1] hwmon: Add debugfs register access Cosmin Tanislav
2021-12-28 16:13 ` Guenter Roeck
2021-12-28 16:51 ` Cosmin Tanislav
2021-12-28 17:09 ` Guenter Roeck
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=20211227224201.508331-1-demonsingur@gmail.com \
--to=demonsingur@gmail.com \
--cc=corbet@lwn.net \
--cc=cosmin.tanislav@analog.com \
--cc=jdelvare@suse.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
/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 NNTP newsgroup(s).