.. | .. |
---|
840 | 840 | return ret; |
---|
841 | 841 | } |
---|
842 | 842 | |
---|
843 | | - ret = hid_hw_start(hdev, HID_CONNECT_HIDRAW); |
---|
| 843 | + /* |
---|
| 844 | + * This driver uses the .raw_event callback and therefore does not need any |
---|
| 845 | + * HID_CONNECT_xxx flags. |
---|
| 846 | + */ |
---|
| 847 | + ret = hid_hw_start(hdev, 0); |
---|
844 | 848 | if (ret) { |
---|
845 | 849 | hid_err(hdev, "can't start hardware\n"); |
---|
846 | 850 | return ret; |
---|
847 | 851 | } |
---|
| 852 | + |
---|
| 853 | + hid_info(hdev, "USB HID v%x.%02x Device [%s] on %s\n", hdev->version >> 8, |
---|
| 854 | + hdev->version & 0xff, hdev->name, hdev->phys); |
---|
848 | 855 | |
---|
849 | 856 | ret = hid_hw_open(hdev); |
---|
850 | 857 | if (ret) { |
---|
.. | .. |
---|
870 | 877 | mcp->adapter.retries = 1; |
---|
871 | 878 | mcp->adapter.dev.parent = &hdev->dev; |
---|
872 | 879 | snprintf(mcp->adapter.name, sizeof(mcp->adapter.name), |
---|
873 | | - "MCP2221 usb-i2c bridge on hidraw%d", |
---|
874 | | - ((struct hidraw *)hdev->hidraw)->minor); |
---|
| 880 | + "MCP2221 usb-i2c bridge"); |
---|
875 | 881 | |
---|
876 | 882 | ret = i2c_add_adapter(&mcp->adapter); |
---|
877 | 883 | if (ret) { |
---|