)]}'
{
  "commit": "a8d838d9d3a0373b51408a2ecb647c320e1aaff9",
  "tree": "8524bb99c9ff890da6311769656a6480abb0a1d5",
  "parents": [
    "532c717bccc95aa93bae7af8be0695bee83c32b5"
  ],
  "author": {
    "name": "Stefan Tauner",
    "email": "stefan.tauner@alumni.tuwien.ac.at",
    "time": "Sun Nov 06 23:51:09 2011 +0000"
  },
  "committer": {
    "name": "Stefan Tauner",
    "email": "stefan.tauner@alumni.tuwien.ac.at",
    "time": "Sun Nov 06 23:51:09 2011 +0000"
  },
  "message": "ichspi: use a variable to distinguish ich generations instead of spi_programmer-\u003etype\n\nThe type member is enough most of the time to derive the wanted\ninformation, but\n - not always (e.g. ich_set_bbar),\n - only available after registration, which we want to delay till the\n   end of init, and\n - we really want to distinguish between chipset version-grained\n   attributes which are not reflected by the registered programmer.\n\nHence this patch introduces a new static variable which is set up\nearly by the init functions and allows us to get rid of all \"switch\n(spi_programmer-\u003etype)\" in ichspi.c. We reuse the enum introduced\nfor descriptor mode for the type of the new variable.\n\nPreviously magic numbers were passed by chipset_enable wrappers. Now\nthey use the enumeration items too. To get this working the enum\ndefinition had to be moved to programmer.h.\n\nAnother noteworthy detail: previously we have checked for a valid\nprogrammer/ich generation all over the place. I have removed those\nchecks and added one single check in the init method. Calling any\nfunction of a programmer without executing the init method first, is\nundefined behavior.\n\nCorresponding to flashrom svn r1460.\n\nSigned-off-by: Stefan Tauner \u003cstefan.tauner@alumni.tuwien.ac.at\u003e\nAcked-by: Carl-Daniel Hailfinger \u003cc-d.hailfinger.devel.2006@gmx.net\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d2d81e0f49126cd9212497d0d12c1570b77f17e7",
      "old_mode": 33188,
      "old_path": "chipset_enable.c",
      "new_id": "15bd3eb5a4c973f29b5264a911615c7a24253ad9",
      "new_mode": 33188,
      "new_path": "chipset_enable.c"
    },
    {
      "type": "modify",
      "old_id": "4e2ad0a3e64da11cca52bf8a6efed970a9dbbcca",
      "old_mode": 33188,
      "old_path": "ich_descriptors.h",
      "new_id": "714eda9955d213095c73f5b2b30d1c4442fe5480",
      "new_mode": 33188,
      "new_path": "ich_descriptors.h"
    },
    {
      "type": "modify",
      "old_id": "afa420b9ce36aab302f9be2e7f05347902e42156",
      "old_mode": 33188,
      "old_path": "ichspi.c",
      "new_id": "b0f312a107880213e9151f1d445dfa9c7526747b",
      "new_mode": 33188,
      "new_path": "ichspi.c"
    },
    {
      "type": "modify",
      "old_id": "16947f1eb3ef0e54a123f9331a69dc4da3283c6d",
      "old_mode": 33188,
      "old_path": "programmer.h",
      "new_id": "143f963381a9e8928be64999b4ccad6df55d4e15",
      "new_mode": 33188,
      "new_path": "programmer.h"
    }
  ]
}
