diff options
| -rw-r--r-- | drivers/hid/hid-cp2112.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/hid/hid-cp2112.c b/drivers/hid/hid-cp2112.c index 1025982c7fd3..3913eb9fec2a 100644 --- a/drivers/hid/hid-cp2112.c +++ b/drivers/hid/hid-cp2112.c | |||
| @@ -185,8 +185,8 @@ static int cp2112_gpio_direction_input(struct gpio_chip *chip, unsigned offset) | |||
| 185 | buf[1] &= ~(1 << offset); | 185 | buf[1] &= ~(1 << offset); |
| 186 | buf[2] = gpio_push_pull; | 186 | buf[2] = gpio_push_pull; |
| 187 | 187 | ||
| 188 | ret = hdev->hid_output_raw_report(hdev, buf, sizeof(buf), | 188 | ret = hid_hw_raw_request(hdev, CP2112_GPIO_CONFIG, buf, sizeof(buf), |
| 189 | HID_FEATURE_REPORT); | 189 | HID_FEATURE_REPORT, HID_REQ_SET_REPORT); |
| 190 | if (ret < 0) { | 190 | if (ret < 0) { |
| 191 | hid_err(hdev, "error setting GPIO config: %d\n", ret); | 191 | hid_err(hdev, "error setting GPIO config: %d\n", ret); |
| 192 | return ret; | 192 | return ret; |
| @@ -207,8 +207,8 @@ static void cp2112_gpio_set(struct gpio_chip *chip, unsigned offset, int value) | |||
| 207 | buf[1] = value ? 0xff : 0; | 207 | buf[1] = value ? 0xff : 0; |
| 208 | buf[2] = 1 << offset; | 208 | buf[2] = 1 << offset; |
| 209 | 209 | ||
| 210 | ret = hdev->hid_output_raw_report(hdev, buf, sizeof(buf), | 210 | ret = hid_hw_raw_request(hdev, CP2112_GPIO_SET, buf, sizeof(buf), |
| 211 | HID_FEATURE_REPORT); | 211 | HID_FEATURE_REPORT, HID_REQ_SET_REPORT); |
| 212 | if (ret < 0) | 212 | if (ret < 0) |
| 213 | hid_err(hdev, "error setting GPIO values: %d\n", ret); | 213 | hid_err(hdev, "error setting GPIO values: %d\n", ret); |
| 214 | } | 214 | } |
| @@ -253,8 +253,8 @@ static int cp2112_gpio_direction_output(struct gpio_chip *chip, | |||
| 253 | buf[1] |= 1 << offset; | 253 | buf[1] |= 1 << offset; |
| 254 | buf[2] = gpio_push_pull; | 254 | buf[2] = gpio_push_pull; |
| 255 | 255 | ||
| 256 | ret = hdev->hid_output_raw_report(hdev, buf, sizeof(buf), | 256 | ret = hid_hw_raw_request(hdev, CP2112_GPIO_CONFIG, buf, sizeof(buf), |
| 257 | HID_FEATURE_REPORT); | 257 | HID_FEATURE_REPORT, HID_REQ_SET_REPORT); |
| 258 | if (ret < 0) { | 258 | if (ret < 0) { |
| 259 | hid_err(hdev, "error setting GPIO config: %d\n", ret); | 259 | hid_err(hdev, "error setting GPIO config: %d\n", ret); |
| 260 | return ret; | 260 | return ret; |
