Skip to content

Instantly share code, notes, and snippets.

@scottellis
Created December 6, 2010 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottellis/729676 to your computer and use it in GitHub Desktop.
Save scottellis/729676 to your computer and use it in GitHub Desktop.
struct spike_dev
struct spike_dev {
spinlock_t spi_lock;
struct semaphore fop_sem;
dev_t devt;
struct cdev cdev;
struct class *class;
struct spi_device *spi_device;
struct hrtimer timer;
u32 timer_period_sec;
u32 timer_period_ns;
u32 running;
char *user_buff;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment