public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: Greg KH <greg@kroah.com>
Cc: Denis Vlasenko <vda@ilport.com.ua>,
	LKML <linux-kernel@vger.kernel.org>,
	LM Sensors <lm-sensors@lm-sensors.org>
Subject: [PATCH 2.6] hwmon: via686a: save 0.5k by long v[256] -> s16 v[256]
Date: Sat, 3 Sep 2005 16:13:31 +0200	[thread overview]
Message-ID: <20050903161331.1c76153d.khali@linux-fr.org> (raw)
In-Reply-To: <20050903102227.03312247.khali@linux-fr.org>

Hi Greg, all,

> This patch doesn't apply on top of my stack, first because the
> hardware monitoring drivers have been moved to drivers/hwmon, second
> because the via686a driver had indentation cleanups since 2.6.12.
> 
> Could you please provide this patch against 2.6.13-mm1?

On Denis' request, I have done that myself.

------

We can save 0.5kB of data in the via686a driver.

From: Denis Vlasenko <vda@ilport.com.ua>
Signed-off-by: Denis Vlasenko <vda@ilport.com.ua>
Signed-off-by: Jean Delvare <khali@linux-fr.org>

 drivers/hwmon/via686a.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.13.orig/drivers/hwmon/via686a.c	2005-08-29 20:54:28.000000000 +0200
+++ linux-2.6.13/drivers/hwmon/via686a.c	2005-09-03 16:05:14.000000000 +0200
@@ -198,7 +198,7 @@
  but the function is very linear in the useful range (0-80 deg C), so
  we'll just use linear interpolation for 10-bit readings.)  So, tempLUT
  is the temp at via register values 0-255: */
-static const long tempLUT[] =
+static const s16 tempLUT[] =
 { -709, -688, -667, -646, -627, -607, -589, -570, -553, -536, -519,
 	-503, -487, -471, -456, -442, -428, -414, -400, -387, -375,
 	-362, -350, -339, -327, -316, -305, -295, -285, -275, -265,

-- 
Jean Delvare

  reply	other threads:[~2005-09-03 14:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-01  6:10 i2c via686a.c: save at least 0.5k of space by long v[256] -> u16 v[256] Denis Vlasenko
2005-09-01 15:59 ` Greg KH
2005-09-02  5:54   ` Denis Vlasenko
2005-09-03  8:22     ` Jean Delvare
2005-09-03 14:13       ` Jean Delvare [this message]
2005-09-09 21:32         ` [PATCH 2.6] hwmon: via686a: save 0.5k by long v[256] -> s16 v[256] Greg KH
2005-09-10 21:00           ` Jean Delvare
2005-09-03  8:26     ` i2c via686a.c: save at least 0.5k of space by long v[256] -> u16 v[256] Jean Delvare
2005-09-03 12:51       ` Denis Vlasenko

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=20050903161331.1c76153d.khali@linux-fr.org \
    --to=khali@linux-fr.org \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lm-sensors@lm-sensors.org \
    --cc=vda@ilport.com.ua \
    /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