)]}'
{
  "commit": "0493a4ff10959ff4c8e0d65efee25b7ffd4fa5db",
  "tree": "805d40439515577d647d825223e051514fdc9e5c",
  "parents": [
    "72dcd8d08aca4ac6154dc37243880ee306c7ea73"
  ],
  "author": {
    "name": "Anton Vorontsov",
    "email": "avorontsov@ru.mvista.com",
    "time": "Thu Mar 11 13:58:47 2010 -0800"
  },
  "committer": {
    "name": "Richard Purdie",
    "email": "rpurdie@linux.intel.com",
    "time": "Tue Mar 16 19:53:19 2010 +0000"
  },
  "message": "leds-gpio: fix default state handling on OF platforms\n\nThe driver wrongly sets default state for LEDs that don\u0027t specify\ndefault-state property.\n\nCurrently the driver handles default state this way:\n\nmemset(\u0026led, 0, sizeof(led));\nfor_each_child_of_node(np, child) {\n\tstate \u003d of_get_property(child, \"default-state\", NULL);\n\tif (state) {\n\t\tif (!strcmp(state, \"keep\"))\n\t\t\tled.default_state \u003d LEDS_GPIO_DEFSTATE_KEEP;\n\t\t...\n\t}\n\tret \u003d create_gpio_led(\u0026led, ...);\n}\n\nWhich means that all LEDs that do not specify default-state will inherit\nthe last value of the default-state property, which is wrong.\n\nThis patch fixes the issue by moving LED\u0027s template initialization into\nthe loop body.\n\nSigned-off-by: Anton Vorontsov \u003cavorontsov@ru.mvista.com\u003e\nSigned-off-by: Andrew Morton \u003cakpm@linux-foundation.org\u003e\nSigned-off-by: Richard Purdie \u003crpurdie@linux.intel.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e5225d28f39245cbff44373f38947e3839847a6f",
      "old_mode": 33188,
      "old_path": "drivers/leds/leds-gpio.c",
      "new_id": "0823e2622e8c569013d2da5111d20a3cfb435be4",
      "new_mode": 33188,
      "new_path": "drivers/leds/leds-gpio.c"
    }
  ]
}
