All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20110713105203.5481.94746.sendpatchset@t400s>

diff --git a/a/1.txt b/N1/1.txt
index cb5502c..58acc5a 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -142,7 +142,7 @@ Signed-off-by: Magnus Damm <damm@opensource.se>
 +	void __iomem *base = p->mapbase;
 +	unsigned long offs = reg_nr << 2;
 +
-+	if (reg_nr = TSTR)
++	if (reg_nr == TSTR)
 +		return ioread16(base - cfg->channel_offset);
 +
 +	return ioread16(base + offs);
@@ -155,7 +155,7 @@ Signed-off-by: Magnus Damm <damm@opensource.se>
 +	void __iomem *base = p->mapbase;
 +	unsigned long offs = reg_nr << 2;
 +
-+	if (reg_nr = TSTR) {
++	if (reg_nr == TSTR) {
 +		iowrite16(value, base - cfg->channel_offset);
 +		return;
 +	}
@@ -188,7 +188,7 @@ Signed-off-by: Magnus Damm <damm@opensource.se>
 +	int k, ret;
 +	unsigned long rate, tmp;
 +
-+	if (p->timer_state = R_TPU_TIMER_ON)
++	if (p->timer_state == R_TPU_TIMER_ON)
 +		return 0;
 +
 +	/* wake up device and enable clock */
@@ -247,7 +247,7 @@ Signed-off-by: Magnus Damm <damm@opensource.se>
 +
 +static void r_tpu_disable(struct r_tpu_priv *p)
 +{
-+	if (p->timer_state = R_TPU_TIMER_UNUSED)
++	if (p->timer_state == R_TPU_TIMER_UNUSED)
 +		return;
 +
 +	/* disable channel */
@@ -265,23 +265,23 @@ Signed-off-by: Magnus Damm <damm@opensource.se>
 +{
 +	struct led_renesas_tpu_config *cfg = p->pdev->dev.platform_data;
 +
-+	if (p->pin_state = new_state) {
-+		if (p->pin_state = R_TPU_PIN_GPIO)
++	if (p->pin_state == new_state) {
++		if (p->pin_state == R_TPU_PIN_GPIO)
 +			gpio_set_value(cfg->pin_gpio, brightness);
 +		return;
 +	}
 +
-+	if (p->pin_state = R_TPU_PIN_GPIO)
++	if (p->pin_state == R_TPU_PIN_GPIO)
 +		gpio_free(cfg->pin_gpio);
 +
-+	if (p->pin_state = R_TPU_PIN_GPIO_FN)
++	if (p->pin_state == R_TPU_PIN_GPIO_FN)
 +		gpio_free(cfg->pin_gpio_fn);
 +
-+	if (new_state = R_TPU_PIN_GPIO) {
++	if (new_state == R_TPU_PIN_GPIO) {
 +		gpio_request(cfg->pin_gpio, cfg->name);
 +		gpio_direction_output(cfg->pin_gpio, !!brightness);
 +	}
-+	if (new_state = R_TPU_PIN_GPIO_FN)
++	if (new_state == R_TPU_PIN_GPIO_FN)
 +		gpio_request(cfg->pin_gpio_fn, cfg->name);
 +
 +	p->pin_state = new_state;
@@ -295,7 +295,7 @@ Signed-off-by: Magnus Damm <damm@opensource.se>
 +	r_tpu_disable(p);
 +
 +	/* off and maximum are handled as GPIO pins, in between PWM */
-+	if ((brightness = 0) || (brightness = ldev->max_brightness))
++	if ((brightness == 0) || (brightness == ldev->max_brightness))
 +		r_tpu_set_pin(p, R_TPU_PIN_GPIO, brightness);
 +	else {
 +		r_tpu_set_pin(p, R_TPU_PIN_GPIO_FN, 0);
@@ -316,7 +316,7 @@ Signed-off-by: Magnus Damm <damm@opensource.se>
 +	}
 +
 +	p = kzalloc(sizeof(*p), GFP_KERNEL);
-+	if (p = NULL) {
++	if (p == NULL) {
 +		dev_err(&pdev->dev, "failed to allocate driver data\n");
 +		ret = -ENOMEM;
 +		goto err0;
@@ -330,7 +330,7 @@ Signed-off-by: Magnus Damm <damm@opensource.se>
 +
 +	/* map memory, let mapbase point to our channel */
 +	p->mapbase = ioremap_nocache(res->start, resource_size(res));
-+	if (p->mapbase = NULL) {
++	if (p->mapbase == NULL) {
 +		dev_err(&pdev->dev, "failed to remap I/O memory\n");
 +		goto err1;
 +	}
diff --git a/a/content_digest b/N1/content_digest
index f455414..22c241f 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,6 +1,6 @@
  "From\0Magnus Damm <magnus.damm@gmail.com>\0"
  "Subject\0[PATCH] leds: Renesas TPU LED driver V2\0"
- "Date\0Wed, 13 Jul 2011 10:52:03 +0000\0"
+ "Date\0Wed, 13 Jul 2011 19:52:03 +0900\0"
  "To\0linux-kernel@vger.kernel.org\0"
  "Cc\0Magnus Damm <magnus.damm@gmail.com>"
   lethal@linux-sh.org
@@ -152,7 +152,7 @@
  "+\tvoid __iomem *base = p->mapbase;\n"
  "+\tunsigned long offs = reg_nr << 2;\n"
  "+\n"
- "+\tif (reg_nr = TSTR)\n"
+ "+\tif (reg_nr == TSTR)\n"
  "+\t\treturn ioread16(base - cfg->channel_offset);\n"
  "+\n"
  "+\treturn ioread16(base + offs);\n"
@@ -165,7 +165,7 @@
  "+\tvoid __iomem *base = p->mapbase;\n"
  "+\tunsigned long offs = reg_nr << 2;\n"
  "+\n"
- "+\tif (reg_nr = TSTR) {\n"
+ "+\tif (reg_nr == TSTR) {\n"
  "+\t\tiowrite16(value, base - cfg->channel_offset);\n"
  "+\t\treturn;\n"
  "+\t}\n"
@@ -198,7 +198,7 @@
  "+\tint k, ret;\n"
  "+\tunsigned long rate, tmp;\n"
  "+\n"
- "+\tif (p->timer_state = R_TPU_TIMER_ON)\n"
+ "+\tif (p->timer_state == R_TPU_TIMER_ON)\n"
  "+\t\treturn 0;\n"
  "+\n"
  "+\t/* wake up device and enable clock */\n"
@@ -257,7 +257,7 @@
  "+\n"
  "+static void r_tpu_disable(struct r_tpu_priv *p)\n"
  "+{\n"
- "+\tif (p->timer_state = R_TPU_TIMER_UNUSED)\n"
+ "+\tif (p->timer_state == R_TPU_TIMER_UNUSED)\n"
  "+\t\treturn;\n"
  "+\n"
  "+\t/* disable channel */\n"
@@ -275,23 +275,23 @@
  "+{\n"
  "+\tstruct led_renesas_tpu_config *cfg = p->pdev->dev.platform_data;\n"
  "+\n"
- "+\tif (p->pin_state = new_state) {\n"
- "+\t\tif (p->pin_state = R_TPU_PIN_GPIO)\n"
+ "+\tif (p->pin_state == new_state) {\n"
+ "+\t\tif (p->pin_state == R_TPU_PIN_GPIO)\n"
  "+\t\t\tgpio_set_value(cfg->pin_gpio, brightness);\n"
  "+\t\treturn;\n"
  "+\t}\n"
  "+\n"
- "+\tif (p->pin_state = R_TPU_PIN_GPIO)\n"
+ "+\tif (p->pin_state == R_TPU_PIN_GPIO)\n"
  "+\t\tgpio_free(cfg->pin_gpio);\n"
  "+\n"
- "+\tif (p->pin_state = R_TPU_PIN_GPIO_FN)\n"
+ "+\tif (p->pin_state == R_TPU_PIN_GPIO_FN)\n"
  "+\t\tgpio_free(cfg->pin_gpio_fn);\n"
  "+\n"
- "+\tif (new_state = R_TPU_PIN_GPIO) {\n"
+ "+\tif (new_state == R_TPU_PIN_GPIO) {\n"
  "+\t\tgpio_request(cfg->pin_gpio, cfg->name);\n"
  "+\t\tgpio_direction_output(cfg->pin_gpio, !!brightness);\n"
  "+\t}\n"
- "+\tif (new_state = R_TPU_PIN_GPIO_FN)\n"
+ "+\tif (new_state == R_TPU_PIN_GPIO_FN)\n"
  "+\t\tgpio_request(cfg->pin_gpio_fn, cfg->name);\n"
  "+\n"
  "+\tp->pin_state = new_state;\n"
@@ -305,7 +305,7 @@
  "+\tr_tpu_disable(p);\n"
  "+\n"
  "+\t/* off and maximum are handled as GPIO pins, in between PWM */\n"
- "+\tif ((brightness = 0) || (brightness = ldev->max_brightness))\n"
+ "+\tif ((brightness == 0) || (brightness == ldev->max_brightness))\n"
  "+\t\tr_tpu_set_pin(p, R_TPU_PIN_GPIO, brightness);\n"
  "+\telse {\n"
  "+\t\tr_tpu_set_pin(p, R_TPU_PIN_GPIO_FN, 0);\n"
@@ -326,7 +326,7 @@
  "+\t}\n"
  "+\n"
  "+\tp = kzalloc(sizeof(*p), GFP_KERNEL);\n"
- "+\tif (p = NULL) {\n"
+ "+\tif (p == NULL) {\n"
  "+\t\tdev_err(&pdev->dev, \"failed to allocate driver data\\n\");\n"
  "+\t\tret = -ENOMEM;\n"
  "+\t\tgoto err0;\n"
@@ -340,7 +340,7 @@
  "+\n"
  "+\t/* map memory, let mapbase point to our channel */\n"
  "+\tp->mapbase = ioremap_nocache(res->start, resource_size(res));\n"
- "+\tif (p->mapbase = NULL) {\n"
+ "+\tif (p->mapbase == NULL) {\n"
  "+\t\tdev_err(&pdev->dev, \"failed to remap I/O memory\\n\");\n"
  "+\t\tgoto err1;\n"
  "+\t}\n"
@@ -446,4 +446,4 @@
  "+\n"
  +#endif /* __LEDS_RENESAS_TPU_H__ */
 
-d23b482cfde4f758599dfcf6c1ff090fe140c4204cc50ef9066900b751803924
+9ac33ae9bf8afd1966240266fd749e66183f73367a1066ba765a1b6468ee1dc1

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.