Repository navigation
Commit 358a89c
input: utilize new cdev_device_add helper function
Replace the open coded registration of the cdev and dev with the
new device_add_cdev() helper in evdev, joydev and mousedev. The helper
replaces a common pattern by taking the proper reference against the
parent device and adding both the cdev and the device.
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 92a3fa0 commit 358a89c
3 files changed
Lines changed: 6 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1354 | 1354 | | |
1355 | 1355 | | |
1356 | 1356 | | |
1357 | | - | |
1358 | | - | |
1359 | 1357 | | |
1360 | 1358 | | |
1361 | 1359 | | |
| |||
1416 | 1414 | | |
1417 | 1415 | | |
1418 | 1416 | | |
1419 | | - | |
1420 | | - | |
1421 | | - | |
1422 | | - | |
1423 | 1417 | | |
1424 | | - | |
| 1418 | + | |
1425 | 1419 | | |
1426 | 1420 | | |
1427 | 1421 | | |
1428 | 1422 | | |
1429 | 1423 | | |
1430 | 1424 | | |
1431 | 1425 | | |
1432 | | - | |
1433 | 1426 | | |
1434 | 1427 | | |
1435 | 1428 | | |
| |||
1442 | 1435 | | |
1443 | 1436 | | |
1444 | 1437 | | |
1445 | | - | |
| 1438 | + | |
1446 | 1439 | | |
1447 | 1440 | | |
1448 | 1441 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
742 | 742 | | |
743 | 743 | | |
744 | 744 | | |
745 | | - | |
746 | | - | |
747 | 745 | | |
748 | 746 | | |
749 | 747 | | |
| |||
913 | 911 | | |
914 | 912 | | |
915 | 913 | | |
916 | | - | |
917 | | - | |
918 | | - | |
919 | | - | |
920 | 914 | | |
921 | | - | |
| 915 | + | |
922 | 916 | | |
923 | 917 | | |
924 | 918 | | |
925 | 919 | | |
926 | 920 | | |
927 | 921 | | |
928 | 922 | | |
929 | | - | |
930 | 923 | | |
931 | 924 | | |
932 | 925 | | |
| |||
939 | 932 | | |
940 | 933 | | |
941 | 934 | | |
942 | | - | |
| 935 | + | |
943 | 936 | | |
944 | 937 | | |
945 | 938 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
812 | 812 | | |
813 | 813 | | |
814 | 814 | | |
815 | | - | |
816 | | - | |
817 | 815 | | |
818 | 816 | | |
819 | 817 | | |
| |||
901 | 899 | | |
902 | 900 | | |
903 | 901 | | |
904 | | - | |
905 | | - | |
906 | | - | |
907 | | - | |
908 | 902 | | |
909 | | - | |
| 903 | + | |
910 | 904 | | |
911 | 905 | | |
912 | 906 | | |
913 | 907 | | |
914 | 908 | | |
915 | 909 | | |
916 | 910 | | |
917 | | - | |
918 | 911 | | |
919 | 912 | | |
920 | 913 | | |
| |||
927 | 920 | | |
928 | 921 | | |
929 | 922 | | |
930 | | - | |
| 923 | + | |
931 | 924 | | |
932 | 925 | | |
933 | 926 | | |
| |||
0 commit comments