linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Q: use of enum in struct dtv_frontend_properties
@ 2012-07-10 12:17 Antti Palosaari
  0 siblings, 0 replies; only message in thread
From: Antti Palosaari @ 2012-07-10 12:17 UTC (permalink / raw)
  To: linux-media

I am adding DTMB support (again) for DVB API. There is new parameter 
interleaving needed. Currently it has 3 values. I defined it as a enum 
as typedef enum is not allowed anymore in Kernel.

Should I define it as (enum fe_interleaving) or (u8) in struct 
dtv_frontend_properties?

enum fe_interleaving {
	INTERLEAVING_NONE,
	INTERLEAVING_240,
	INTERLEAVING_720,
};

struct dtv_frontend_properties {
	enum fe_interleaving    interleaving;
};

*** OR ***:

struct dtv_frontend_properties {
	u8    interleaving;
};



regards
Antti



-- 
http://palosaari.fi/


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-07-10 12:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-10 12:17 Q: use of enum in struct dtv_frontend_properties Antti Palosaari

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).