public inbox for linux-hwmon@vger.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Hardware Monitoring <linux-hwmon@vger.kernel.org>
Cc: Jean Delvare <jdelvare@suse.com>, Guenter Roeck <linux@roeck-us.net>
Subject: [PATCH 0/4] hwmon: (tmp401) Various improvements
Date: Tue,  9 Nov 2021 15:48:10 -0800	[thread overview]
Message-ID: <20211109234814.3724798-1-linux@roeck-us.net> (raw)

This series converts the tmp401 driver to use
devm_hwmon_device_register_with_info(), and it converts the driver
to use regmap. This results in a code size reduction by approximately
20% and data size reduction by approximately 50% when building the
driver for x86_64.

----------------------------------------------------------------
Guenter Roeck (4):
      hwmon: (tmp401) Simplify temperature register arrays
      hwmon: (tmp401) Convert to _info API
      hwmon: (tmp401) Use regmap
      hwmon: (tmp401) Hide register write address differences in regmap code

 drivers/hwmon/Kconfig  |   1 +
 drivers/hwmon/tmp401.c | 862 ++++++++++++++++++++++++-------------------------
 2 files changed, 431 insertions(+), 432 deletions(-)

             reply	other threads:[~2021-11-09 23:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-09 23:48 Guenter Roeck [this message]
2021-11-09 23:48 ` [PATCH 1/4] hwmon: (tmp401) Simplify temperature register arrays Guenter Roeck
2021-11-09 23:48 ` [PATCH 2/4] hwmon: (tmp401) Convert to _info API Guenter Roeck
2021-11-09 23:48 ` [PATCH 3/4] hwmon: (tmp401) Use regmap Guenter Roeck
2021-11-09 23:48 ` [PATCH 4/4] hwmon: (tmp401) Hide register write address differences in regmap code 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=20211109234814.3724798-1-linux@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=jdelvare@suse.com \
    --cc=linux-hwmon@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