)]}'
{
  "commit": "fd4484af7c02b31bcb6090eeb0d85cf947719f2d",
  "tree": "b7cf0b5b4ade5c3cd4351b1a1256432356898068",
  "parents": [
    "0f687e9aeb590e9581709379f47dd13ee9357258"
  ],
  "author": {
    "name": "Henrique de Moraes Holschuh",
    "email": "hmh@hmh.eng.br",
    "time": "Thu Jul 03 13:14:57 2008 -0300"
  },
  "committer": {
    "name": "John W. Linville",
    "email": "linville@tuxdriver.com",
    "time": "Tue Jul 08 14:16:03 2008 -0400"
  },
  "message": "rfkill: ignore errors from rfkill_toggle_radio in rfkill_add_switch\n\nrfkill_add_switch() calls rfkill_toggle_radio() to set the state of a\nrecently registered rfkill class to the current global state [for that\nrfkill-\u003etype].\n\nThe rfkill_toggle_radio() call is going to error out if the hardware is\nRFKILL_STATE_HARD_BLOCKED, and the global state is RFKILL_STATE_UNBLOCKED.\n\nThat is a quite normal situation which I missed to account for.  As things\nstand, the error return from rfkill_toggle_radio ends up causing\nrfkill_register to bail out with an error (de-registering the new switch in\nthe process), which is Not Nice.\n\nChange rfkill_add_switch() to not return errors because of a failed call to\nrfkill_toggle_radio().  We can go back to returning errors again (if that\u0027s\nindeed the right thing to do) if we define the exact error codes the\nrfkill-\u003etoggle_radio callbacks are to return in each situation, so that we\ncan ignore the right ones only.\n\nBug reported by \"kionez \u003ckionez@anche.no\u003e\".\n\nSigned-off-by: Henrique de Moraes Holschuh \u003chmh@hmh.eng.br\u003e\nCc: kionez \u003ckionez@anche.no\u003e\nAcked-by: Ivo van Doorn \u003cIvDoorn@gmail.com\u003e\nSigned-off-by: John W. Linville \u003clinville@tuxdriver.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "aa7039dfa19d357b113e66262fe55f7f1ad8cd84",
      "old_mode": 33188,
      "old_path": "net/rfkill/rfkill.c",
      "new_id": "7a560b785097e2971aa916d73c2ea2b72107cb8d",
      "new_mode": 33188,
      "new_path": "net/rfkill/rfkill.c"
    }
  ]
}
