mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
lis3lv02d: add axes knowledge for HP 6710
Add support for the HP laptops of model 6710x for having correctly setup axes. Signed-off-by: Martin Kebert <gkmarty@gmail.com> Signed-off-by: Eric Piel <eric.piel@tremplin-utc.net> Acked-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
c77a022d29
commit
87357d277a
1 changed files with 2 additions and 1 deletions
|
@ -156,6 +156,7 @@ static struct axis_conversion lis3lv02d_axis_xy_rotated_left = {-2, 1, 3};
|
||||||
static struct axis_conversion lis3lv02d_axis_xy_rotated_left_usd = {-2, 1, -3};
|
static struct axis_conversion lis3lv02d_axis_xy_rotated_left_usd = {-2, 1, -3};
|
||||||
static struct axis_conversion lis3lv02d_axis_xy_swap_inverted = {-2, -1, 3};
|
static struct axis_conversion lis3lv02d_axis_xy_swap_inverted = {-2, -1, 3};
|
||||||
static struct axis_conversion lis3lv02d_axis_xy_rotated_right = {2, -1, 3};
|
static struct axis_conversion lis3lv02d_axis_xy_rotated_right = {2, -1, 3};
|
||||||
|
static struct axis_conversion lis3lv02d_axis_xy_swap_yz_inverted = {2, -1, -3};
|
||||||
|
|
||||||
#define AXIS_DMI_MATCH(_ident, _name, _axis) { \
|
#define AXIS_DMI_MATCH(_ident, _name, _axis) { \
|
||||||
.ident = _ident, \
|
.ident = _ident, \
|
||||||
|
@ -177,9 +178,9 @@ static struct dmi_system_id lis3lv02d_dmi_ids[] = {
|
||||||
AXIS_DMI_MATCH("NC653x", "HP Compaq 653", xy_rotated_left_usd),
|
AXIS_DMI_MATCH("NC653x", "HP Compaq 653", xy_rotated_left_usd),
|
||||||
AXIS_DMI_MATCH("NC673x", "HP Compaq 673", xy_rotated_left_usd),
|
AXIS_DMI_MATCH("NC673x", "HP Compaq 673", xy_rotated_left_usd),
|
||||||
AXIS_DMI_MATCH("NC651xx", "HP Compaq 651", xy_rotated_right),
|
AXIS_DMI_MATCH("NC651xx", "HP Compaq 651", xy_rotated_right),
|
||||||
|
AXIS_DMI_MATCH("NC671xx", "HP Compaq 671", xy_swap_yz_inverted),
|
||||||
{ NULL, }
|
{ NULL, }
|
||||||
/* Laptop models without axis info (yet):
|
/* Laptop models without axis info (yet):
|
||||||
* "NC671xx" "HP Compaq 671"
|
|
||||||
* "NC6910" "HP Compaq 6910"
|
* "NC6910" "HP Compaq 6910"
|
||||||
* HP Compaq 8710x Notebook PC / Mobile Workstation
|
* HP Compaq 8710x Notebook PC / Mobile Workstation
|
||||||
* "NC2400" "HP Compaq nc2400"
|
* "NC2400" "HP Compaq nc2400"
|
||||||
|
|
Loading…
Reference in a new issue