)]}'
{
  "commit": "61a8bd27fb5ff27db98e96b462957994e7cca946",
  "tree": "42326fb1bdeb491df1db567eacdec088bee46c7d",
  "parents": [
    "0677dfffc67ad2d0e973f558be86e66f225b4ddc"
  ],
  "author": {
    "name": "Carl-Daniel Hailfinger",
    "email": "c-d.hailfinger.devel.2006@gmx.net",
    "time": "Thu Mar 05 19:24:22 2009 +0000"
  },
  "committer": {
    "name": "Carl-Daniel Hailfinger",
    "email": "c-d.hailfinger.devel.2006@gmx.net",
    "time": "Thu Mar 05 19:24:22 2009 +0000"
  },
  "message": "Use helper functions to access flash chips\n\nRight now we perform direct pointer manipulation without any abstraction\nto read from and write to memory mapped flash chips. That makes it\nimpossible to drive any flasher which does not mmap the whole chip.\n\nUsing helper functions readb() and writeb() allows a driver for external\nflash programmers like Paraflasher to replace readb and writeb with\ncalls to its own chip access routines.\n\nThis patch has the additional advantage of removing lots of unnecessary\ncasts to volatile uint8_t * and now-superfluous parentheses which caused\npoor readability.\n\nI used the semantic patcher Coccinelle to create this patch. The\nsemantic patch follows:\n@@\nexpression a;\ntypedef uint8_t;\nvolatile uint8_t *b;\n@@\n- *(b) \u003d (a);\n+ writeb(a, b);\n@@\nvolatile uint8_t *b;\n@@\n- *(b)\n+ readb(b)\n@@\ntype T;\nT b;\n@@\n(\n readb\n|\n writeb\n)\n (...,\n- (T)\n- (b)\n+ b\n )\n\nIn contrast to a sed script, the semantic patch performs type checking\nbefore converting anything.\n\nTested-by: Joe Julian\n\nCorresponding to flashrom svn r418 and coreboot v2 svn r3971.\n\nSigned-off-by: Carl-Daniel Hailfinger \u003cc-d.hailfinger.devel.2006@gmx.net\u003e\nAcked-by: FENG Yu Ning \u003cfengyuning1984@gmail.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5e5b1a59add70c75195c9db93bc98afb99004ca4",
      "old_mode": 33188,
      "old_path": "82802ab.c",
      "new_id": "9bbee8d466716328a9188757c5e7776d4772f381",
      "new_mode": 33188,
      "new_path": "82802ab.c"
    },
    {
      "type": "modify",
      "old_id": "fbe435b8887f24dfec980303198c19f8fe1c1284",
      "old_mode": 33188,
      "old_path": "am29f040b.c",
      "new_id": "78f417fe9673ab81be417cd7aff9f170f2818444",
      "new_mode": 33188,
      "new_path": "am29f040b.c"
    },
    {
      "type": "modify",
      "old_id": "c70b37b11531ceb40cfedda279adf8cf01fd72d0",
      "old_mode": 33188,
      "old_path": "en29f002a.c",
      "new_id": "41dac7f64cea7065295dcee29bd5a414b6cbaa54",
      "new_mode": 33188,
      "new_path": "en29f002a.c"
    },
    {
      "type": "modify",
      "old_id": "3985c600db0b4c1ba7515972a61567f550faee27",
      "old_mode": 33188,
      "old_path": "flash.h",
      "new_id": "b33e1330c4e140b2dd3001596d76b48c8a94b094",
      "new_mode": 33188,
      "new_path": "flash.h"
    },
    {
      "type": "modify",
      "old_id": "9dbaa5327daaddd4b2715dce637718f65b514e2d",
      "old_mode": 33188,
      "old_path": "jedec.c",
      "new_id": "5403297cef0b50507abce22928c67484cd46582f",
      "new_mode": 33188,
      "new_path": "jedec.c"
    },
    {
      "type": "modify",
      "old_id": "8afef796ee457287e13c1140cb76297e65a68ff0",
      "old_mode": 33188,
      "old_path": "m29f002.c",
      "new_id": "f806a2d15adb62ecebe7421570bf75b7988562b0",
      "new_mode": 33188,
      "new_path": "m29f002.c"
    },
    {
      "type": "modify",
      "old_id": "d0b040de2da488960ba3c9673d4887acb38123ce",
      "old_mode": 33188,
      "old_path": "m29f400bt.c",
      "new_id": "2ca72e4e8563c05ae09a87f0ef50a970eb3d3900",
      "new_mode": 33188,
      "new_path": "m29f400bt.c"
    },
    {
      "type": "modify",
      "old_id": "30adab1d72ce2919c18ac704678b50f19456444d",
      "old_mode": 33188,
      "old_path": "mx29f002.c",
      "new_id": "0e3f5620cd7f2e93c59dbf17538a3883d8eb5c6d",
      "new_mode": 33188,
      "new_path": "mx29f002.c"
    },
    {
      "type": "modify",
      "old_id": "fe8b9741b48de2e0824c2742d236cf62ce8b3f5d",
      "old_mode": 33188,
      "old_path": "pm49fl00x.c",
      "new_id": "e2ca7b6660af9f140a1531f14cf32d6d31fed052",
      "new_mode": 33188,
      "new_path": "pm49fl00x.c"
    },
    {
      "type": "modify",
      "old_id": "7db14fe4f4e650f2ced40a31333db56ee42a1069",
      "old_mode": 33188,
      "old_path": "sharplhf00l04.c",
      "new_id": "06a14ef964ad3c2bb07c50a6d43f991bbeefd11f",
      "new_mode": 33188,
      "new_path": "sharplhf00l04.c"
    },
    {
      "type": "modify",
      "old_id": "89be9d8e81a0708b601174ab3b8f4bf3a15cfa7a",
      "old_mode": 33188,
      "old_path": "sst28sf040.c",
      "new_id": "ee8ee809907ee10888b205deead4d0b0f778811b",
      "new_mode": 33188,
      "new_path": "sst28sf040.c"
    },
    {
      "type": "modify",
      "old_id": "2c9a87b9d8ead555f099c19960b11eb4a3750ce9",
      "old_mode": 33188,
      "old_path": "sst49lfxxxc.c",
      "new_id": "397ee6193503c4ecbff6a1fcb091e6dfd5c1f4f3",
      "new_mode": 33188,
      "new_path": "sst49lfxxxc.c"
    },
    {
      "type": "modify",
      "old_id": "455107e01a1cab5f77d6295b9de63a295d34c753",
      "old_mode": 33188,
      "old_path": "sst_fwhub.c",
      "new_id": "2c2992e68237846a757086fa76499fa0c78ddc26",
      "new_mode": 33188,
      "new_path": "sst_fwhub.c"
    },
    {
      "type": "modify",
      "old_id": "c06bab97914541122d114209e8c7137d854f9496",
      "old_mode": 33188,
      "old_path": "stm50flw0x0x.c",
      "new_id": "edb76cc59489b3c1ed7330e7fd394698c4ab7e3b",
      "new_mode": 33188,
      "new_path": "stm50flw0x0x.c"
    },
    {
      "type": "modify",
      "old_id": "fa3aa7ccc067f6ba19424a1fc3c75dd3d8fa5b29",
      "old_mode": 33188,
      "old_path": "w29ee011.c",
      "new_id": "80a4e66ad9317bb84dcc1514bc8a87c9abbd8784",
      "new_mode": 33188,
      "new_path": "w29ee011.c"
    },
    {
      "type": "modify",
      "old_id": "37549d7b7374939c8787ddce00527ae97bcc5435",
      "old_mode": 33188,
      "old_path": "w39v040c.c",
      "new_id": "3a0f430295315fdf6aaa9b6f7231a5739af4fda1",
      "new_mode": 33188,
      "new_path": "w39v040c.c"
    },
    {
      "type": "modify",
      "old_id": "66534ce911ec16b3628d3f182f990bb9b2ac61b1",
      "old_mode": 33188,
      "old_path": "w39v080fa.c",
      "new_id": "6278fbc43e4d22a1f30e982eed89232cfcd83e62",
      "new_mode": 33188,
      "new_path": "w39v080fa.c"
    }
  ]
}
