Commit 3b18ccb
committed
misc: lis3lv02d: convert to use faux_device
The lis3lv02d driver does not need to create a platform device, it only
did so because it was simple to do that in order to get a place in sysfs
to hang some device-specific attributes. Change it over to use the faux
device instead as this is NOT a real platform device, and it makes the
code even smaller than before.
Cc: Eric Piel <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Link: https://lore.kernel.org/r/2025021028-shortcake-stained-b0a8@gregkh
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 72239a7 commit 3b18ccb
2 files changed
+12
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
230 | 229 | | |
231 | 230 | | |
232 | 231 | | |
233 | | - | |
| 232 | + | |
234 | 233 | | |
235 | 234 | | |
236 | 235 | | |
| |||
694 | 693 | | |
695 | 694 | | |
696 | 695 | | |
697 | | - | |
| 696 | + | |
698 | 697 | | |
699 | 698 | | |
700 | 699 | | |
| |||
855 | 854 | | |
856 | 855 | | |
857 | 856 | | |
858 | | - | |
| 857 | + | |
859 | 858 | | |
860 | 859 | | |
861 | 860 | | |
862 | 861 | | |
863 | 862 | | |
864 | | - | |
865 | | - | |
866 | | - | |
867 | | - | |
868 | | - | |
| 863 | + | |
869 | 864 | | |
870 | 865 | | |
871 | 866 | | |
872 | | - | |
873 | | - | |
874 | | - | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
875 | 870 | | |
876 | | - | |
877 | | - | |
| 871 | + | |
| 872 | + | |
878 | 873 | | |
879 | 874 | | |
880 | 875 | | |
881 | 876 | | |
882 | | - | |
883 | | - | |
| 877 | + | |
884 | 878 | | |
885 | 879 | | |
886 | 880 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| |||
0 commit comments