On 09/26/11 09:50, Jonathan Cameron wrote: > On 09/24/11 07:09, Dmitry Torokhov wrote: >> On Tue, Sep 20, 2011 at 11:26:00AM +0100, Jonathan Cameron wrote: >>>> + >>>> +enum lis3dh_interrupt_mode { >>>> + LIS3DH_OR_COMBINATION = 0x00, >>>> + LIS3DH_6D_MOVEMENT = 0x40, >>>> + LIS3DH_AND_COMBINATION = 0x80, >>>> + LIS3DH_6D_POSITION = 0xc0, >>>> +}; >>> Enums seem silly when you don't have at least >>> vaguely consecutive values. Why not just use defines? >> >> Actually enums are not quite silly as compiler can warn you if you >> handle all possible cases in a switch() statement. >> >> Thanks. >> > Fair point, if that is happening. Right now none of this stack of enums > seems to even be used and so I'm not sure which ones would make sense in > a switch (or if they should be there at all). Just registered what these are for. They are for setting up magic values in the platform data. They aren't used in the driver at all, so in this particular case enum's don't make any sense. -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html