)]}'
{
  "commit": "ac551828993eecb8499ef9cc3c828fceb49bcf7a",
  "tree": "1d81c67f37e2351b5c3fa016f16f18ecbc5cfe0e",
  "parents": [
    "afa26be86b65a7183ceac29bdf1f51d6fc6932f0"
  ],
  "author": {
    "name": "Jean Delvare",
    "email": "khali@linux-fr.org",
    "time": "Fri May 02 20:37:21 2008 +0200"
  },
  "committer": {
    "name": "Sam Ravnborg",
    "email": "sam@ravnborg.org",
    "time": "Sun May 04 09:24:47 2008 +0200"
  },
  "message": "modpost: i2c aliases need no trailing wildcard\n\nNot all device types need a wildcard at the end of their module\naliases. In particular, for i2c module aliases, the trailing wildcard\nis not only unneeded, it could also cause the wrong driver to be\nloaded.\n\nAs I2C devices have no IDs, i2c module aliases are simple, arbitrary\ndevice names. For example:\n\n$ /sbin/modinfo lm90\nfilename:       /lib/modules/2.6.25-git18/kernel/drivers/hwmon/lm90.ko\nauthor:         Jean Delvare \u003ckhali@linux-fr.org\u003e\ndescription:    LM90/ADM1032 driver\nlicense:        GPL\nvermagic:       2.6.25-git18 mod_unload\ndepends:        hwmon\nalias:          i2c:lm90*\nalias:          i2c:adm1032*\nalias:          i2c:lm99*\nalias:          i2c:lm86*\nalias:          i2c:max6657*\nalias:          i2c:adt7461*\nalias:          i2c:max6680*\n$\n\nThis would cause trouble if one I2C chip name matches the beginning of\nanother I2C chip name and both chips are supported by different\ndrivers. For example, an i2c device named lm9042 would cause the lm90\ndriver to be loaded, while it doesn\u0027t support that device. This case\nhas yet to be seen in practice, but still, I\u0027d like to fix it now. The\ncleanest fix is to remove the trailing wildcard from i2c module aliases.\n\nHere\u0027s a patch doing this.\n\nNot all device type aliases need a trailing wildcard, in particular\nthe i2c aliases don\u0027t. Don\u0027t add a wildcard by default in do_table(),\ninstead let each device type handler add it if needed.\n\nI have tested types acpi, dmi, eisa, i2c, ide, ieee1394, input, pci,\npcmcia, platform, pnp, scsi, serio, ssb and usb. Other types (ccw, of,\nvio, parisc, sdio and virtio) are untested.\nSigned-off-by: Jean Delvare \u003ckhali@linux-fr.org\u003e\nAcked-by: Jochen Friedrich \u003cjochen@scram.de\u003e\nSigned-off-by: Sam Ravnborg \u003csam@ravnborg.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e04c4218cb5200d415a8933e84478e68b9cceee6",
      "old_mode": 33188,
      "old_path": "scripts/mod/file2alias.c",
      "new_id": "cea4a790e1e97170459576b8b68c94daf3e95cc9",
      "new_mode": 33188,
      "new_path": "scripts/mod/file2alias.c"
    }
  ]
}
