All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20130313030945.GA24985@roeck-us.net>

diff --git a/a/1.txt b/N1/1.txt
index 832740d..3671d6c 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -204,7 +204,7 @@ There are a couple of similar cases elsewhere in the code.
 > +{
 > +	iio_channel_release(pdata->chan);
 
-Imagine the case where OF is defined but np = NULL, ie there was no devicetree
+Imagine the case where OF is defined but np == NULL, ie there was no devicetree
 data and platform data was provided. In this case, pdata->chan will be NULL,
 and you'll have a nice crash at hand. So you'll need to add a NULL check before
 calling iio_channel_release.
@@ -226,7 +226,7 @@ Guenter
 > +
 >  static inline u64 div64_u64_safe(u64 dividend, u64 divisor)
 >  {
->  	if (divisor = 0 && dividend = 0)
+>  	if (divisor == 0 && dividend == 0)
 > @@ -259,7 +360,7 @@ static int ntc_thermistor_get_ohm(struct ntc_data *data)
 >  		return data->pdata->read_ohm();
 >  
@@ -240,7 +240,8 @@ Guenter
 >  
 >  static int ntc_thermistor_probe(struct platform_device *pdev)
 >  {
-> +	const struct of_device_id *of_id > +			of_match_device(of_match_ptr(ntc_match), &pdev->dev);
+> +	const struct of_device_id *of_id =
+> +			of_match_device(of_match_ptr(ntc_match), &pdev->dev);
 > +	const struct platform_device_id *pdev_id;
 > +	struct ntc_thermistor_platform_data *pdata;
 >  	struct ntc_data *data;
@@ -251,7 +252,7 @@ Guenter
 > +	pdata = ntc_thermistor_parse_dt(pdev);
 > +	if (IS_ERR(pdata))
 > +		return PTR_ERR(pdata);
-> +	if (pdata = NULL)
+> +	if (pdata == NULL)
 > +		pdata = pdev->dev.platform_data;
 >  
 >  	if (!pdata) {
@@ -364,9 +365,4 @@ Guenter
 > -- 
 > 1.7.9.5
 > 
-> 
-
-_______________________________________________
-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 815578b..008b55e 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,8 +1,8 @@
  "ref\01363077566-6254-1-git-send-email-ch.naveen@samsung.com\0"
  "ref\01363143309-6835-1-git-send-email-ch.naveen@samsung.com\0"
  "From\0Guenter Roeck <linux@roeck-us.net>\0"
- "Subject\0Re: [lm-sensors] [PATCH v3] hwmon: ntc: Add DT with IIO support to NTC thermistor driver\0"
- "Date\0Wed, 13 Mar 2013 03:09:45 +0000\0"
+ "Subject\0Re: [PATCH v3] hwmon: ntc: Add DT with IIO support to NTC thermistor driver\0"
+ "Date\0Tue, 12 Mar 2013 20:09:45 -0700\0"
  "To\0Naveen Krishna Chatradhi <ch.naveen@samsung.com>\0"
  "Cc\0linux-kernel@vger.kernel.org"
   lm-sensors@lm-sensors.org
@@ -218,7 +218,7 @@
  "> +{\n"
  "> +\tiio_channel_release(pdata->chan);\n"
  "\n"
- "Imagine the case where OF is defined but np = NULL, ie there was no devicetree\n"
+ "Imagine the case where OF is defined but np == NULL, ie there was no devicetree\n"
  "data and platform data was provided. In this case, pdata->chan will be NULL,\n"
  "and you'll have a nice crash at hand. So you'll need to add a NULL check before\n"
  "calling iio_channel_release.\n"
@@ -240,7 +240,7 @@
  "> +\n"
  ">  static inline u64 div64_u64_safe(u64 dividend, u64 divisor)\n"
  ">  {\n"
- ">  \tif (divisor = 0 && dividend = 0)\n"
+ ">  \tif (divisor == 0 && dividend == 0)\n"
  "> @@ -259,7 +360,7 @@ static int ntc_thermistor_get_ohm(struct ntc_data *data)\n"
  ">  \t\treturn data->pdata->read_ohm();\n"
  ">  \n"
@@ -254,7 +254,8 @@
  ">  \n"
  ">  static int ntc_thermistor_probe(struct platform_device *pdev)\n"
  ">  {\n"
- "> +\tconst struct of_device_id *of_id > +\t\t\tof_match_device(of_match_ptr(ntc_match), &pdev->dev);\n"
+ "> +\tconst struct of_device_id *of_id =\n"
+ "> +\t\t\tof_match_device(of_match_ptr(ntc_match), &pdev->dev);\n"
  "> +\tconst struct platform_device_id *pdev_id;\n"
  "> +\tstruct ntc_thermistor_platform_data *pdata;\n"
  ">  \tstruct ntc_data *data;\n"
@@ -265,7 +266,7 @@
  "> +\tpdata = ntc_thermistor_parse_dt(pdev);\n"
  "> +\tif (IS_ERR(pdata))\n"
  "> +\t\treturn PTR_ERR(pdata);\n"
- "> +\tif (pdata = NULL)\n"
+ "> +\tif (pdata == NULL)\n"
  "> +\t\tpdata = pdev->dev.platform_data;\n"
  ">  \n"
  ">  \tif (!pdata) {\n"
@@ -378,11 +379,6 @@
  "> -- \n"
  "> 1.7.9.5\n"
  "> \n"
- "> \n"
- "\n"
- "_______________________________________________\n"
- "lm-sensors mailing list\n"
- "lm-sensors@lm-sensors.org\n"
- http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
+ >
 
-fbee6da67ce985f4191dbb74f9ba8c3ed0292ca66b90dc239a4774180ca31d71
+99cd6939845bb27d8b247ca84b39cbf59defba02f815413021cfb44cabac23dd

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.