Lines 1783-1794
static int elantech_create_smbus(struct psmouse *psmouse,
Link Here
|
1783 |
struct elantech_device_info *info, |
1783 |
struct elantech_device_info *info, |
1784 |
bool leave_breadcrumbs) |
1784 |
bool leave_breadcrumbs) |
1785 |
{ |
1785 |
{ |
1786 |
struct property_entry i2c_props[11] = {}; |
1786 |
struct property_entry i2c_props[12] = {}; |
1787 |
struct i2c_board_info smbus_board = { |
1787 |
struct i2c_board_info smbus_board = { |
1788 |
I2C_BOARD_INFO("elan_i2c", 0x15), |
1788 |
I2C_BOARD_INFO("elan_i2c", 0x15), |
1789 |
.flags = I2C_CLIENT_HOST_NOTIFY, |
1789 |
.flags = I2C_CLIENT_HOST_NOTIFY, |
1790 |
}; |
1790 |
}; |
1791 |
unsigned int idx = 0; |
1791 |
unsigned int idx = 0; |
|
|
1792 |
u16 product_id = get_unaligned_be16(info->samples); |
1792 |
|
1793 |
|
1793 |
smbus_board.properties = i2c_props; |
1794 |
smbus_board.properties = i2c_props; |
1794 |
|
1795 |
|
Lines 1807-1812
static int elantech_create_smbus(struct psmouse *psmouse,
Link Here
|
1807 |
i2c_props[idx++] = PROPERTY_ENTRY_U32("touchscreen-y-mm", |
1808 |
i2c_props[idx++] = PROPERTY_ENTRY_U32("touchscreen-y-mm", |
1808 |
(info->y_max + 1) / info->y_res); |
1809 |
(info->y_max + 1) / info->y_res); |
1809 |
|
1810 |
|
|
|
1811 |
i2c_props[idx++] = PROPERTY_ENTRY_U16("elan,product_id", product_id); |
1812 |
|
1810 |
if (info->has_trackpoint) |
1813 |
if (info->has_trackpoint) |
1811 |
i2c_props[idx++] = PROPERTY_ENTRY_BOOL("elan,trackpoint"); |
1814 |
i2c_props[idx++] = PROPERTY_ENTRY_BOOL("elan,trackpoint"); |
1812 |
|
1815 |
|
1813 |
- |
|
|