All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <4D5BCAEE.6030502@ladisch.de>

diff --git a/a/1.txt b/N1/1.txt
index 5425ecf..15a58d0 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -80,12 +80,12 @@ Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
 +	unsigned int config = data->config;
 +	bool readonly;
 +
-+	if (attr = &dev_attr_temp1_crit.attr)
++	if (attr == &dev_attr_temp1_crit.attr)
 +		readonly = config & JC42_CFG_TCRIT_LOCK;
-+	else if (attr = &dev_attr_temp1_min.attr ||
-+		 attr = &dev_attr_temp1_max.attr)
++	else if (attr == &dev_attr_temp1_min.attr ||
++		 attr == &dev_attr_temp1_max.attr)
 +		readonly = config & JC42_CFG_EVENT_LOCK;
-+	else if (attr = &dev_attr_temp1_crit_hyst.attr)
++	else if (attr == &dev_attr_temp1_crit_hyst.attr)
 +		readonly = config & (JC42_CFG_EVENT_LOCK | JC42_CFG_TCRIT_LOCK);
 +	else
 +		readonly = true;
@@ -99,8 +99,3 @@ Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
  };
  
  /* Return 0 if detection is successful, -ENODEV otherwise */
-
-_______________________________________________
-lm-sensors mailing list
-lm-sensors@lm-sensors.org
-http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
diff --git a/a/content_digest b/N1/content_digest
index c454a50..17da672 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,7 +1,7 @@
  "ref\04D5BCA87.7010204@ladisch.de\0"
  "From\0Clemens Ladisch <clemens@ladisch.de>\0"
- "Subject\0[lm-sensors] [PATCH 3/3] hwmon: (jc42) do not allow writing to\0"
- "Date\0Wed, 16 Feb 2011 13:02:38 +0000\0"
+ "Subject\0[PATCH 3/3] hwmon: (jc42) do not allow writing to locked registers\0"
+ "Date\0Wed, 16 Feb 2011 14:02:38 +0100\0"
  "To\0Guenter Roeck <linux@roeck-us.net>"
  " Jean Delvare <khali@linux-fr.org>\0"
  "Cc\0lm-sensors@lm-sensors.org"
@@ -90,12 +90,12 @@
  "+\tunsigned int config = data->config;\n"
  "+\tbool readonly;\n"
  "+\n"
- "+\tif (attr = &dev_attr_temp1_crit.attr)\n"
+ "+\tif (attr == &dev_attr_temp1_crit.attr)\n"
  "+\t\treadonly = config & JC42_CFG_TCRIT_LOCK;\n"
- "+\telse if (attr = &dev_attr_temp1_min.attr ||\n"
- "+\t\t attr = &dev_attr_temp1_max.attr)\n"
+ "+\telse if (attr == &dev_attr_temp1_min.attr ||\n"
+ "+\t\t attr == &dev_attr_temp1_max.attr)\n"
  "+\t\treadonly = config & JC42_CFG_EVENT_LOCK;\n"
- "+\telse if (attr = &dev_attr_temp1_crit_hyst.attr)\n"
+ "+\telse if (attr == &dev_attr_temp1_crit_hyst.attr)\n"
  "+\t\treadonly = config & (JC42_CFG_EVENT_LOCK | JC42_CFG_TCRIT_LOCK);\n"
  "+\telse\n"
  "+\t\treadonly = true;\n"
@@ -108,11 +108,6 @@
  "+\t.is_visible = jc42_attribute_mode,\n"
  " };\n"
  " \n"
- " /* Return 0 if detection is successful, -ENODEV otherwise */\n"
- "\n"
- "_______________________________________________\n"
- "lm-sensors mailing list\n"
- "lm-sensors@lm-sensors.org\n"
- http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
+  /* Return 0 if detection is successful, -ENODEV otherwise */
 
-7c27f212ee728f478e9ff544d8b5c296d0c0166f4ed89df8b571d142d3a141b1
+7e9bda8a461e161f1d7d5b2b7ffb42ddc19d45c65afbb651d8527f30293af5e6

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.