diff for duplicates of <201209061614.54022.heiko@sntech.de> diff --git a/a/1.txt b/N1/1.txt index ffc6438..4ab72fe 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -67,7 +67,8 @@ Heiko > +++ b/Documentation/devicetree/bindings/power_seq/power_seq.txt > @@ -0,0 +1,117 @@ > +Runtime Interpreted Power Sequences -> +=================> + +> +=================================== +> + > +Power sequences are sequential descriptions of actions to be performed on > +power-related resources. Having these descriptions in a precise data > format +allows us to take much of the board-specific power control code @@ -190,7 +191,8 @@ Heiko > +++ b/Documentation/power/power_seq.txt > @@ -0,0 +1,225 @@ > +Runtime Interpreted Power Sequences -> +=================> + +> +=================================== +> + > +Problem > +------- > +Very commonly, boards need the help of out-of-driver code to turn some of @@ -569,7 +571,7 @@ Heiko > + return err; > + } > + for (i = 0; i < POWER_SEQ_NUM_TYPES; i++) { -> + if (power_seq_types[i].name = NULL) +> + if (power_seq_types[i].name == NULL) > + continue; > + if (!strcmp(type, power_seq_types[i].name)) > + break; @@ -747,7 +749,7 @@ Heiko > + struct power_seq_step *step = &seq->steps[i]; > + > + if (pstep->type >= POWER_SEQ_NUM_TYPES || -> + power_seq_types[pstep->type].name = NULL) { +> + power_seq_types[pstep->type].name == NULL) { > + power_seq_err(dev, seq, i, > + "invalid power sequence type %d!", > + pstep->type); @@ -1010,7 +1012,7 @@ Heiko > +static bool power_seq_res_compare_gpio(struct platform_power_seq_step > *step1, + struct platform_power_seq_step *step2) > +{ -> + return step1->gpio.number = step2->gpio.number; +> + return step1->gpio.number == step2->gpio.number; > +} > + > +static int power_seq_res_alloc_gpio(struct device *dev, @@ -1328,10 +1330,10 @@ Heiko > + * struct platform_power_seq_step - platform data for power sequences > steps + * @type: The type of this step. This decides which member of the > union is + * valid for this step. -> + * @delay: Used if type = POWER_SEQ_DELAY -> + * @regulator: Used if type = POWER_SEQ_REGULATOR -> + * @pwm: Used if type = POWER_SEQ_PWN -> + * @gpio: Used if type = POWER_SEQ_GPIO +> + * @delay: Used if type == POWER_SEQ_DELAY +> + * @regulator: Used if type == POWER_SEQ_REGULATOR +> + * @pwm: Used if type == POWER_SEQ_PWN +> + * @gpio: Used if type == POWER_SEQ_GPIO > + */ > +struct platform_power_seq_step { > + enum power_seq_res_type type; diff --git a/a/content_digest b/N1/content_digest index b65df06..c80f704 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -2,7 +2,7 @@ "ref\01346412846-17102-2-git-send-email-acourbot@nvidia.com\0" "From\0Heiko St\303\274bner <heiko@sntech.de>\0" "Subject\0Re: [PATCH v5 1/4] Runtime Interpreted Power Sequences\0" - "Date\0Thu, 06 Sep 2012 14:14:53 +0000\0" + "Date\0Thu, 6 Sep 2012 16:14:53 +0200\0" "To\0Alexandre Courbot <acourbot@nvidia.com>\0" "Cc\0Stephen Warren <swarren@nvidia.com>" Thierry Reding <thierry.reding@avionic-design.de> @@ -91,7 +91,8 @@ "> +++ b/Documentation/devicetree/bindings/power_seq/power_seq.txt\n" "> @@ -0,0 +1,117 @@\n" "> +Runtime Interpreted Power Sequences\n" - "> +=================> +\n" + "> +===================================\n" + "> +\n" "> +Power sequences are sequential descriptions of actions to be performed on\n" "> +power-related resources. Having these descriptions in a precise data\n" "> format +allows us to take much of the board-specific power control code\n" @@ -214,7 +215,8 @@ "> +++ b/Documentation/power/power_seq.txt\n" "> @@ -0,0 +1,225 @@\n" "> +Runtime Interpreted Power Sequences\n" - "> +=================> +\n" + "> +===================================\n" + "> +\n" "> +Problem\n" "> +-------\n" "> +Very commonly, boards need the help of out-of-driver code to turn some of\n" @@ -593,7 +595,7 @@ "> +\t\treturn err;\n" "> +\t}\n" "> +\tfor (i = 0; i < POWER_SEQ_NUM_TYPES; i++) {\n" - "> +\t\tif (power_seq_types[i].name = NULL)\n" + "> +\t\tif (power_seq_types[i].name == NULL)\n" "> +\t\t\tcontinue;\n" "> +\t\tif (!strcmp(type, power_seq_types[i].name))\n" "> +\t\t\tbreak;\n" @@ -771,7 +773,7 @@ "> +\t\tstruct power_seq_step *step = &seq->steps[i];\n" "> +\n" "> +\t\tif (pstep->type >= POWER_SEQ_NUM_TYPES ||\n" - "> +\t\t power_seq_types[pstep->type].name = NULL) {\n" + "> +\t\t power_seq_types[pstep->type].name == NULL) {\n" "> +\t\t\tpower_seq_err(dev, seq, i,\n" "> +\t\t\t\t \"invalid power sequence type %d!\",\n" "> +\t\t \t\t pstep->type);\n" @@ -1034,7 +1036,7 @@ "> +static bool power_seq_res_compare_gpio(struct platform_power_seq_step\n" "> *step1, +\t\t\t\t struct platform_power_seq_step *step2)\n" "> +{\n" - "> +\treturn step1->gpio.number = step2->gpio.number;\n" + "> +\treturn step1->gpio.number == step2->gpio.number;\n" "> +}\n" "> +\n" "> +static int power_seq_res_alloc_gpio(struct device *dev,\n" @@ -1352,10 +1354,10 @@ "> + * struct platform_power_seq_step - platform data for power sequences\n" "> steps + * @type:\tThe type of this step. This decides which member of the\n" "> union is + *\t\tvalid for this step.\n" - "> + * @delay:\tUsed if type = POWER_SEQ_DELAY\n" - "> + * @regulator:\tUsed if type = POWER_SEQ_REGULATOR\n" - "> + * @pwm:\tUsed if type = POWER_SEQ_PWN\n" - "> + * @gpio:\tUsed if type = POWER_SEQ_GPIO\n" + "> + * @delay:\tUsed if type == POWER_SEQ_DELAY\n" + "> + * @regulator:\tUsed if type == POWER_SEQ_REGULATOR\n" + "> + * @pwm:\tUsed if type == POWER_SEQ_PWN\n" + "> + * @gpio:\tUsed if type == POWER_SEQ_GPIO\n" "> + */\n" "> +struct platform_power_seq_step {\n" "> +\tenum power_seq_res_type type;\n" @@ -1432,4 +1434,4 @@ "> +\n" > +#endif -3186f74cfca8f9a4f65c6fcf6fe7ef8060936707385e5f329df7c51f5145e82d +528ff11fd7e8ae2cf886556a99b3cb0f94df404989558b18f812b0e0caca2b9b
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.