History

[media] dvb: Get rid of typedev usage for enums

The DVB API was originally defined using typedefs. This is against Kernel CodingStyle, and there's no good usage here. While we can't remove its usage on userspace, we can avoid its usage in Kernelspace. So, let's do it. This patch was generated by this shell script: for j in $(grep typedef include/uapi/linux/dvb/frontend.h |cut -d' ' -f 3); do for i in $(find drivers/media -name '*.[ch]' -type f) $(find drivers/staging/media -name '*.[ch]' -type f); do sed "s,${j}_t,enum $j," <$i >a && mv a $i; done; done While here, make CodingStyle fixes on the affected lines.

Mauro Carvalho Chehab committed 11 years ago

Commit 0df289a1 parent fe557e4150 files · +630 −492Browse files

Showing the changes to include/uapi (1 of 150 files). Show all

Unified · Split

include/uapi/linux/dvb/frontend.h+2−2
@@ -77,7 +77,7 @@ typedef enum fe_caps fe_caps_t; · 76 unmodified lines
7777
7878 struct dvb_frontend_info {
7979 char name[128];
80− fe_type_t type; /* DEPRECATED. Use DTV_ENUM_DELSYS instead */
80+ enum fe_type type; /* DEPRECATED. Use DTV_ENUM_DELSYS instead */
8181 __u32 frequency_min;
8282 __u32 frequency_max;
8383 __u32 frequency_stepsize;
@@ -86,7 +86,7 @@ struct dvb_frontend_info { · 2 unmodified lines
8686 __u32 symbol_rate_max;
8787 __u32 symbol_rate_tolerance; /* ppm */
8888 __u32 notifier_delay; /* DEPRECATED */
89− fe_caps_t caps;
89+ enum fe_caps caps;
9090 };
9191
9292