Commit bcacedb
bcm2708_fb: Explicitly initialise the IOMEM ops
Prior to [1], an fb_ops member of 0 was intepreted as a request for a
default value. This saves source code but requires special handling by
the framework, slowing down all accesses for no runtime benefit.
Use the new __FB_DEFAULT_ macros to explicitly select default handlers
in the bcm2708_fb driver. Also remove the pointless wrappers around
cfb_fillrect and cfb_imageblit - call them directly.
Link: https://forums.raspberrypi.com/viewtopic.php?p=2286016#p2286016
Signed-off-by: Phil Elwell <[email protected]>
[1] 8813e86 ("fbdev: Remove default file-I/O implementations")1 parent 2d693f4 commit bcacedb
2 files changed
+5
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | | - | |
| 68 | + | |
71 | 69 | | |
72 | 70 | | |
73 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
790 | 790 | | |
791 | 791 | | |
792 | 792 | | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | 793 | | |
800 | 794 | | |
801 | 795 | | |
| |||
947 | 941 | | |
948 | 942 | | |
949 | 943 | | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | | - | |
954 | | - | |
955 | | - | |
956 | 944 | | |
957 | 945 | | |
958 | 946 | | |
| |||
973 | 961 | | |
974 | 962 | | |
975 | 963 | | |
| 964 | + | |
976 | 965 | | |
977 | 966 | | |
978 | 967 | | |
979 | 968 | | |
980 | | - | |
| 969 | + | |
981 | 970 | | |
982 | | - | |
| 971 | + | |
983 | 972 | | |
984 | 973 | | |
985 | 974 | | |
986 | 975 | | |
987 | 976 | | |
| 977 | + | |
988 | 978 | | |
989 | 979 | | |
990 | 980 | | |
| |||
0 commit comments