Staging: frontier: Make checkpatch.pl happy with alphatrack.h
Signed-off-by: David Täht <d@teklibre.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
b3bc12dac7
commit
a07998529b
|
@ -1,42 +1,38 @@
|
|||
#define show_set_bit(a) show_set_mbit(alphatrack,a)
|
||||
#define show_set_cmd(a) show_set_mcmd(alphatrack,a)
|
||||
#define show_set_int(a) show_set_mint(alphatrack,a)
|
||||
#define show_set_char(a) show_set_mchar(alphatrack,a)
|
||||
#define show_set_light(a) show_set_ebit(alphatrack,LightID,lights,a)
|
||||
#define show_set_button(a) show_set_ebit(alphatrack,ButtonID,button,a)
|
||||
|
||||
struct alphatrack_icmd {
|
||||
unsigned char cmd[12];
|
||||
unsigned char cmd[12];
|
||||
};
|
||||
|
||||
struct alphatrack_ocmd {
|
||||
unsigned char cmd[8];
|
||||
unsigned char cmd[8];
|
||||
};
|
||||
|
||||
/* These are unused by the present driver but provide documentation for the
|
||||
* userspace API.
|
||||
*/
|
||||
enum LightID {
|
||||
LIGHT_EQ = 0,
|
||||
LIGHT_OUT,
|
||||
LIGHT_F2,
|
||||
LIGHT_SEND,
|
||||
LIGHT_IN,
|
||||
LIGHT_F1,
|
||||
LIGHT_PAN,
|
||||
LIGHT_UNDEF1,
|
||||
LIGHT_UNDEF2,
|
||||
LIGHT_SHIFT,
|
||||
LIGHT_TRACKMUTE,
|
||||
LIGHT_TRACKSOLO,
|
||||
LIGHT_TRACKREC,
|
||||
LIGHT_READ,
|
||||
LIGHT_WRITE,
|
||||
LIGHT_ANYSOLO,
|
||||
LIGHT_AUTO,
|
||||
LIGHT_F4,
|
||||
LIGHT_RECORD,
|
||||
LIGHT_WINDOW,
|
||||
LIGHT_PLUGIN,
|
||||
LIGHT_F3,
|
||||
LIGHT_LOOP
|
||||
LIGHT_EQ = 0,
|
||||
LIGHT_OUT,
|
||||
LIGHT_F2,
|
||||
LIGHT_SEND,
|
||||
LIGHT_IN,
|
||||
LIGHT_F1,
|
||||
LIGHT_PAN,
|
||||
LIGHT_UNDEF1,
|
||||
LIGHT_UNDEF2,
|
||||
LIGHT_SHIFT,
|
||||
LIGHT_TRACKMUTE,
|
||||
LIGHT_TRACKSOLO,
|
||||
LIGHT_TRACKREC,
|
||||
LIGHT_READ,
|
||||
LIGHT_WRITE,
|
||||
LIGHT_ANYSOLO,
|
||||
LIGHT_AUTO,
|
||||
LIGHT_F4,
|
||||
LIGHT_RECORD,
|
||||
LIGHT_WINDOW,
|
||||
LIGHT_PLUGIN,
|
||||
LIGHT_F3,
|
||||
LIGHT_LOOP
|
||||
};
|
||||
|
||||
#define BUTTONMASK_BATTERY 0x00004000
|
||||
|
@ -62,8 +58,9 @@ enum LightID {
|
|||
#define BUTTONMASK_PRESS2 0x00008010
|
||||
#define BUTTONMASK_PRESS3 0x00002020
|
||||
|
||||
// last 3 bytes are the slider position
|
||||
// 40 is the actual slider moving, the most sig bits, and 3 lsb
|
||||
/* last 3 bytes are the slider position
|
||||
* 40 is the actual slider moving, the most sig bits, and 3 lsb
|
||||
*/
|
||||
|
||||
#define BUTTONMASK_FLIP 0x40000000
|
||||
#define BUTTONMASK_F1 0x00100000
|
||||
|
@ -76,17 +73,4 @@ enum LightID {
|
|||
#define BUTTONMASK_PLUGIN 0x00000400
|
||||
#define BUTTONMASK_AUTO 0x00000100
|
||||
|
||||
|
||||
// #define BUTTONMASK_FOOTSWITCH FIXME
|
||||
|
||||
// Lookup. name. midi out. midi in.
|
||||
|
||||
struct buttonmap_t {
|
||||
u32 mask;
|
||||
short midi_in;
|
||||
short midi_out;
|
||||
char *name;
|
||||
// void (*function) (buttonmap_t *);
|
||||
void (*function) (void);
|
||||
};
|
||||
|
||||
/* #define BUTTONMASK_FOOTSWITCH FIXME */
|
||||
|
|
Loading…
Reference in New Issue