From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Walls Subject: Re: [PATCH 04/15] V4L/DVB: ir-core: Add logic to decode IR protocols at the IR core Date: Fri, 02 Apr 2010 20:59:47 -0400 Message-ID: <1270256387.3027.84.camel@palomino.walls.org> References: <20100401145632.7b1b98d5@pedra> <1270251567.3027.55.camel@palomino.walls.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1270251567.3027.55.camel@palomino.walls.org> Sender: linux-media-owner@vger.kernel.org To: Mauro Carvalho Chehab Cc: linux-input@vger.kernel.org, Linux Media Mailing List List-Id: linux-input@vger.kernel.org On Fri, 2010-04-02 at 19:39 -0400, Andy Walls wrote: > On Thu, 2010-04-01 at 14:56 -0300, Mauro Carvalho Chehab wrote: > > +enum raw_event_type { > > + IR_SPACE = (1 << 0), > > + IR_PULSE = (1 << 1), > > + IR_START_EVENT = (1 << 2), > > + IR_STOP_EVENT = (1 << 3), > > +}; > > + > > Why are these events encoded as bit flags? Shouldn't they all be > orthogonal? ^^^^^^^^^^ Argh, wrong word. Shouldn't they all be mutually exclusive? Regards, Andy