All of lore.kernel.org
 help / color / mirror / Atom feed
* RFC [PATCH 2.6] I2C: w83627ehf: add fan_div no-op store method
@ 2005-05-19  6:25 Grant Coady
  2005-05-19  6:25 ` Jean Delvare
  2005-05-19  6:25 ` Grant Coady
  0 siblings, 2 replies; 3+ messages in thread
From: Grant Coady @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

Hi Greg, Jean,

This small patch adds no-op fan_div store method to silence warning 
from 'sensors -s'.  Compile tested.

--Grant.


Signed-off-by: Grant Coady <gcoady@gmail.com>

---
 w83627ehf.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

--- linux-2.6.12-rc4-mm1/drivers/i2c/chips/w83627ehf.c	2005-05-12 21:33:22.000000000 +1000
+++ linux-2.6.12-rc4-mm1b/drivers/i2c/chips/w83627ehf.c	2005-05-13 19:39:00.000000000 +1000
@@ -515,8 +515,15 @@ show_reg_fan##offset##_div(struct device
 { \
 	return show_fan_div(dev, buf, offset - 1); \
 } \
-static DEVICE_ATTR(fan##offset##_div, S_IRUGO, \
-		   show_reg_fan##offset##_div, NULL);
+static ssize_t \
+store_reg_fan##offset##_div(struct device *dev, const char *buf, \
+			    size_t count) \
+{ \
+	return count; \
+} \
+static DEVICE_ATTR(fan##offset##_div, S_IRUGO | S_IWUSR, \
+		   show_reg_fan##offset##_div, \
+		   store_reg_fan##offset##_div);
 
 sysfs_fan_offset(1);
 sysfs_fan_min_offset(1);

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-05-19  6:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19  6:25 RFC [PATCH 2.6] I2C: w83627ehf: add fan_div no-op store method Grant Coady
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Grant Coady

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.