Commit a0799852 authored by David Täht's avatar David Täht Committed by Greg Kroah-Hartman

Staging: frontier: Make checkpatch.pl happy with alphatrack.h

Signed-off-by: default avatarDavid Täht <d@teklibre.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b3bc12da
#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 { struct alphatrack_icmd {
unsigned char cmd[12]; unsigned char cmd[12];
}; };
...@@ -13,6 +6,9 @@ struct alphatrack_ocmd { ...@@ -13,6 +6,9 @@ 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 { enum LightID {
LIGHT_EQ = 0, LIGHT_EQ = 0,
LIGHT_OUT, LIGHT_OUT,
...@@ -62,8 +58,9 @@ enum LightID { ...@@ -62,8 +58,9 @@ enum LightID {
#define BUTTONMASK_PRESS2 0x00008010 #define BUTTONMASK_PRESS2 0x00008010
#define BUTTONMASK_PRESS3 0x00002020 #define BUTTONMASK_PRESS3 0x00002020
// last 3 bytes are the slider position /* last 3 bytes are the slider position
// 40 is the actual slider moving, the most sig bits, and 3 lsb * 40 is the actual slider moving, the most sig bits, and 3 lsb
*/
#define BUTTONMASK_FLIP 0x40000000 #define BUTTONMASK_FLIP 0x40000000
#define BUTTONMASK_F1 0x00100000 #define BUTTONMASK_F1 0x00100000
...@@ -76,17 +73,4 @@ enum LightID { ...@@ -76,17 +73,4 @@ enum LightID {
#define BUTTONMASK_PLUGIN 0x00000400 #define BUTTONMASK_PLUGIN 0x00000400
#define BUTTONMASK_AUTO 0x00000100 #define BUTTONMASK_AUTO 0x00000100
/* #define BUTTONMASK_FOOTSWITCH FIXME */
// #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);
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment