)]}'
{
  "commit": "a82e49b8aeb9f8dafdf6cf2e617c8b95bf056257",
  "tree": "c264d2e4193d76a68468c42ee36cb33affe018fa",
  "parents": [
    "2775562ad2af2fc131ef7987166db6e42217528f"
  ],
  "author": {
    "name": "Bart Massey",
    "email": "bart@cs.pdx.edu",
    "time": "Mon May 08 14:40:13 2006 -0700"
  },
  "committer": {
    "name": "Greg Kroah-Hartman",
    "email": "gregkh@suse.de",
    "time": "Wed Jun 21 15:04:10 2006 -0700"
  },
  "message": "[PATCH] USB HID/HIDBP, INPUT DRIVERS: fix various usb/input/hid-input.c bugs that make Apple Mighty Mouse work poorly\n\nTransposed lines of code in drivers/usb/input/hid-input.c causes the\ncapability bits for a new HID device to be set before quirks are applied\nat configuration time.  When an HID event is then sent up to the input\nlayer, it may then be discarded as irrelevant because the wrong\ncapability bit is set.\n\nFurther, the quirks for the Apple Mighty Mouse are not quite right: the\nhorizontal scrolling needs its axis reversed, and the left and center\nbuttons are transposed.  Also, the mouse is labeled in the kernel with\nits earlier name (I think) of Apple PowerMouse.\n\nSteps to reproduce problem: Plug in an Apple Mighty Mouse.  Note that\nhorizontal scrolling doesn\u0027t work at all, and in fact doesn\u0027t generate\nany input events on /dev/input/eventN.  Note also that pushing the\nmiddle button performs the right button action, and vice versa.  Once\nyou have the horizontal scrolling working, note that it is backward WRT\nboth to vertical scrolling and to common sense.\n\nThis patch maybe should be broken up, as it does address two problems.\nThe transposed code in hidinput_configure_usage() probably creates bugs\nbeyond just the Mighty Mouse.  The rest of the patch renames POWERMOUSE\nto MIGHTYMOUSE everywhere (which I *believe* is correct), fixes the\nMIGHTYMOUSE quirk to swap the center and right mouse buttons, and adds a\nnew quirk HID_QUIRK_INVERT_HWHEEL also assigned to the MIGHTYMOUSE with\ncode in hidinput_hid_event() to implement it.\n\nSigned-off-by: Bart Massey \u003cbart@cs.pdx.edu\u003e\nSigned-off-by: Greg Kroah-Hartman \u003cgregkh@suse.de\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4f7e9214de0ea5631ad72d0019affe83b02c76ea",
      "old_mode": 33188,
      "old_path": "drivers/usb/input/hid-core.c",
      "new_id": "bb1f5211ff9d0608102520b9f6bb9f317aab77b8",
      "new_mode": 33188,
      "new_path": "drivers/usb/input/hid-core.c"
    },
    {
      "type": "modify",
      "old_id": "25bc85f8ce39ba7368fe90a8fa1c1359df19aaba",
      "old_mode": 33188,
      "old_path": "drivers/usb/input/hid-input.c",
      "new_id": "2f665195f4ac9494d9a8a72d89a9368f954f42ce",
      "new_mode": 33188,
      "new_path": "drivers/usb/input/hid-input.c"
    },
    {
      "type": "modify",
      "old_id": "9c62837b5b899c2fcb40389725bee142b619db6c",
      "old_mode": 33188,
      "old_path": "drivers/usb/input/hid.h",
      "new_id": "7efbfff8adde1b28f5594d104c27774d3be3a871",
      "new_mode": 33188,
      "new_path": "drivers/usb/input/hid.h"
    }
  ]
}
