Skip to content

Commit 71c4c8b

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: atkbd - add force relese key quirk for Soltech TA12 Input: fix EVIOCGNAME/JSIOCGNAME regression Input: atkbd - add forced release keys quirk for FSC Amilo Pi 3525 Input: pcspkr - switch driver to dev_pm_ops Input: xpad - don't resend successfully sent outgoing requests Input: wistron_btns - recognize Maxdata Pro 7000 notebooks
2 parents 3730793 + 032e46c commit 71c4c8b

6 files changed

Lines changed: 62 additions & 18 deletions

File tree

‎drivers/input/evdev.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,8 +608,7 @@ static long evdev_do_ioctl(struct file *file, unsigned int cmd,
608608
p, compat_mode);
609609

610610
if (_IOC_NR(cmd) == _IOC_NR(EVIOCGNAME(0)))
611-
return str_to_user(dev_name(&evdev->dev),
612-
_IOC_SIZE(cmd), p);
611+
return str_to_user(dev->name, _IOC_SIZE(cmd), p);
613612

614613
if (_IOC_NR(cmd) == _IOC_NR(EVIOCGPHYS(0)))
615614
return str_to_user(dev->phys, _IOC_SIZE(cmd), p);

‎drivers/input/joydev.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ static int joydev_ioctl_common(struct joydev *joydev,
536536
default:
537537
if ((cmd & ~IOCSIZE_MASK) == JSIOCGNAME(0)) {
538538
int len;
539-
const char *name = dev_name(&dev->dev);
539+
const char *name = dev->name;
540540

541541
if (!name)
542542
return 0;

‎drivers/input/joystick/xpad.c‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -470,20 +470,20 @@ static void xpad_irq_out(struct urb *urb)
470470
status = urb->status;
471471

472472
switch (status) {
473-
case 0:
473+
case 0:
474474
/* success */
475-
break;
476-
case -ECONNRESET:
477-
case -ENOENT:
478-
case -ESHUTDOWN:
479-
/* this urb is terminated, clean up */
480-
dbg("%s - urb shutting down with status: %d",
481-
__func__, status);
482-
return;
483-
default:
484-
dbg("%s - nonzero urb status received: %d",
485-
__func__, status);
486-
goto exit;
475+
return;
476+
477+
case -ECONNRESET:
478+
case -ENOENT:
479+
case -ESHUTDOWN:
480+
/* this urb is terminated, clean up */
481+
dbg("%s - urb shutting down with status: %d", __func__, status);
482+
return;
483+
484+
default:
485+
dbg("%s - nonzero urb status received: %d", __func__, status);
486+
goto exit;
487487
}
488488

489489
exit:

‎drivers/input/keyboard/atkbd.c‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,13 +894,27 @@ static unsigned int atkbd_amilo_pa1510_forced_release_keys[] = {
894894
0xb0, 0xae, -1U
895895
};
896896

897+
/*
898+
* Amilo Pi 3525 key release for Fn+Volume keys not working
899+
*/
900+
static unsigned int atkbd_amilo_pi3525_forced_release_keys[] = {
901+
0x20, 0xa0, 0x2e, 0xae, 0x30, 0xb0, -1U
902+
};
903+
897904
/*
898905
* Amilo Xi 3650 key release for light touch bar not working
899906
*/
900907
static unsigned int atkbd_amilo_xi3650_forced_release_keys[] = {
901908
0x67, 0xed, 0x90, 0xa2, 0x99, 0xa4, 0xae, 0xb0, -1U
902909
};
903910

911+
/*
912+
* Soltech TA12 system with broken key release on volume keys and mute key
913+
*/
914+
static unsigned int atkdb_soltech_ta12_forced_release_keys[] = {
915+
0xa0, 0xae, 0xb0, -1U
916+
};
917+
904918
/*
905919
* atkbd_set_keycode_table() initializes keyboard's keycode table
906920
* according to the selected scancode set
@@ -1567,6 +1581,15 @@ static struct dmi_system_id atkbd_dmi_quirk_table[] __initdata = {
15671581
.callback = atkbd_setup_forced_release,
15681582
.driver_data = atkbd_amilo_pa1510_forced_release_keys,
15691583
},
1584+
{
1585+
.ident = "Fujitsu Amilo Pi 3525",
1586+
.matches = {
1587+
DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),
1588+
DMI_MATCH(DMI_PRODUCT_NAME, "AMILO Pi 3525"),
1589+
},
1590+
.callback = atkbd_setup_forced_release,
1591+
.driver_data = atkbd_amilo_pi3525_forced_release_keys,
1592+
},
15701593
{
15711594
.ident = "Fujitsu Amilo Xi 3650",
15721595
.matches = {
@@ -1576,6 +1599,15 @@ static struct dmi_system_id atkbd_dmi_quirk_table[] __initdata = {
15761599
.callback = atkbd_setup_forced_release,
15771600
.driver_data = atkbd_amilo_xi3650_forced_release_keys,
15781601
},
1602+
{
1603+
.ident = "Soltech Corporation TA12",
1604+
.matches = {
1605+
DMI_MATCH(DMI_SYS_VENDOR, "Soltech Corporation"),
1606+
DMI_MATCH(DMI_PRODUCT_NAME, "TA12"),
1607+
},
1608+
.callback = atkbd_setup_forced_release,
1609+
.driver_data = atkdb_soltech_ta12_forced_release_keys,
1610+
},
15791611
{ }
15801612
};
15811613

‎drivers/input/misc/pcspkr.c‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ static int __devexit pcspkr_remove(struct platform_device *dev)
114114
return 0;
115115
}
116116

117-
static int pcspkr_suspend(struct platform_device *dev, pm_message_t state)
117+
static int pcspkr_suspend(struct device *dev)
118118
{
119119
pcspkr_event(NULL, EV_SND, SND_BELL, 0);
120120

@@ -127,14 +127,18 @@ static void pcspkr_shutdown(struct platform_device *dev)
127127
pcspkr_event(NULL, EV_SND, SND_BELL, 0);
128128
}
129129

130+
static struct dev_pm_ops pcspkr_pm_ops = {
131+
.suspend = pcspkr_suspend,
132+
};
133+
130134
static struct platform_driver pcspkr_platform_driver = {
131135
.driver = {
132136
.name = "pcspkr",
133137
.owner = THIS_MODULE,
138+
.pm = &pcspkr_pm_ops,
134139
},
135140
.probe = pcspkr_probe,
136141
.remove = __devexit_p(pcspkr_remove),
137-
.suspend = pcspkr_suspend,
138142
.shutdown = pcspkr_shutdown,
139143
};
140144

‎drivers/input/misc/wistron_btns.c‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,15 @@ static struct dmi_system_id dmi_ids[] __initdata = {
644644
},
645645
.driver_data = keymap_fs_amilo_pro_v2000
646646
},
647+
{
648+
.callback = dmi_matched,
649+
.ident = "Maxdata Pro 7000 DX",
650+
.matches = {
651+
DMI_MATCH(DMI_SYS_VENDOR, "MAXDATA"),
652+
DMI_MATCH(DMI_PRODUCT_NAME, "Pro 7000"),
653+
},
654+
.driver_data = keymap_fs_amilo_pro_v2000
655+
},
647656
{
648657
.callback = dmi_matched,
649658
.ident = "Fujitsu N3510",

0 commit comments

Comments
 (0)