-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'for-4.20/i2c-hid' into for-linus
- general cleanups of hid-i2c driver - SPIODEV device descriptor fixes
- Loading branch information
Showing
13 changed files
with
627 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,6 @@ | |
# | ||
|
||
obj-$(CONFIG_I2C_HID) += i2c-hid.o | ||
|
||
i2c-hid-objs = i2c-hid-core.o | ||
i2c-hid-$(CONFIG_DMI) += i2c-hid-dmi-quirks.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* SPDX-License-Identifier: GPL-2.0+ */ | ||
|
||
#ifndef I2C_HID_H | ||
#define I2C_HID_H | ||
|
||
|
||
#ifdef CONFIG_DMI | ||
struct i2c_hid_desc *i2c_hid_get_dmi_i2c_hid_desc_override(uint8_t *i2c_name); | ||
char *i2c_hid_get_dmi_hid_report_desc_override(uint8_t *i2c_name, | ||
unsigned int *size); | ||
#else | ||
static inline struct i2c_hid_desc | ||
*i2c_hid_get_dmi_i2c_hid_desc_override(uint8_t *i2c_name) | ||
{ return NULL; } | ||
static inline char *i2c_hid_get_dmi_hid_report_desc_override(uint8_t *i2c_name, | ||
unsigned int *size) | ||
{ return NULL; } | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.