)]}'
{
  "commit": "becf05e748b3842b792373d812e41c5a407aef5f",
  "tree": "8a7365e269475be3fe963caf1075c22e69da4920",
  "parents": [
    "52ceb7731e7c23101a26e91aad81ae30de87b10d"
  ],
  "author": {
    "name": "Julia Lawall",
    "email": "Julia.Lawall@lip6.fr",
    "time": "Fri Sep 16 12:55:26 2016 +0200"
  },
  "committer": {
    "name": "Jonathan Cameron",
    "email": "jic23@kernel.org",
    "time": "Sun Sep 18 11:59:51 2016 +0100"
  },
  "message": "iio: common: ssp_sensors: gyro: constify iio_info structures\n\nCheck for iio_info structures that are only stored in the info field of a\niio_dev structure.  This field is declared const, so iio_info structures\nthat have this property can be declared as const also.\n\nThe semantic patch that makes this change is as follows:\n(http://coccinelle.lip6.fr/)\n\n// \u003csmpl\u003e\n@r disable optional_qualifier@\nidentifier i;\nposition p;\n@@\nstatic struct iio_info i@p \u003d { ... };\n\n@ok@\nidentifier r.i;\nstruct iio_dev e;\nposition p;\n@@\ne.info \u003d \u0026i@p;\n\n@bad@\nposition p !\u003d {r.p,ok.p};\nidentifier r.i;\nstruct iio_info e;\n@@\ne@i@p\n\n@depends on !bad disable optional_qualifier@\nidentifier r.i;\n@@\nstatic\n+const\n struct iio_info i \u003d { ... };\n// \u003c/smpl\u003e\n\nThe result of size on this file before the change is:\n   text\t      data     bss     dec         hex\t  filename\n   1245        344       0    1589         635\n   drivers/iio/gyro/ssp_gyro_sensor.o\n\nand after the change it is:\n   text\t     data        bss\t    dec\t    hex\tfilename\n   1397       192          0       1589     635\n   drivers/iio/gyro/ssp_gyro_sensor.o\n\nSigned-off-by: Julia Lawall \u003cJulia.Lawall@lip6.fr\u003e\nSigned-off-by: Jonathan Cameron \u003cjic23@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0a8afdd217280a49f5c181b2c5c95f244ee3bf2e",
      "old_mode": 33188,
      "old_path": "drivers/iio/gyro/ssp_gyro_sensor.c",
      "new_id": "1f25f406c545ffe93bf03222f8f9636e0dc52f77",
      "new_mode": 33188,
      "new_path": "drivers/iio/gyro/ssp_gyro_sensor.c"
    }
  ]
}
